Sophos SG UTM
Sophos SG UTM Remote Code Execution Vulnerability
Edge device · Firewall / VPNknown edge product: Sophos SG UTM Sophos SG UTM Remote (high confidence)
A remote code execution vulnerability exists in the WebAdmin of Sophos SG UTM before v9.705 MR5, v9.607 MR7, and v9.511 MR11
Timeline
Days relative to CVE publicationFirst public PoC 338 days after publication; added to CISA KEV 1.5 years after publication. First PoC: darrenmartyn/sophucked (created 29 Aug 2021, found by us: backfilled).
PoC repositories
Found on GitHub.3 PoCs · 2 pending
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| darrenmartyn/sophucked | 29 Aug 2021 +338 d | 11 | PoC |
| maguireja/CVE-2020-25223 | 9 Sep 2021 +350 d | 3 | PoC |
| twentybel0w/CVE-2020-25223 | 9 Sep 2021 +350 d | 3 | PoC |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Live-Hack-CVE/CVE-2020-25223 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| reneww/poc-CVE-2020-25223 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Sophos UTM WebAdmin SID Command Injection (exploit/linux/http/sophos_utm_webadmin_sid_cmd_injection) | unknown | 14 Nov 2026 |
| nuclei template | nuclei template: Sophos UTM Preauth - Remote Code Execution | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 3 PoC reposPOST /var
- Key headers
Accept: text/javascript, text/html, application/xml, text/xml, */*Accept-Language: en-US,en;q=0.5X-Prototype-Version: 1.5.1.1X-Requested-With: XMLHttpRequest- Body markers
"objs""FID":"init""SID""browser":"gecko_linux""backend_version""loc""SID":"|cat /etc/shadow > /var/sec/chroot-httpd/var/webadmin/shadow.txt|""current_uuid":"""SID":"|rm /var/sec/chroot-httpd/var/webadmin/shadow.txt|"inapplication/json; charset=UTF-8- Ports
- 4443, 4444
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0- Seen in
- 3 repos: darrenmartyn/sophucked, maguireja/CVE-2020-25223, twentybel0w/CVE-2020-25223
- Evidence
- darrenmartyn/sophucked/sophucked.py:36 maguireja/CVE-2020-25223/CVE-2020-25223.py:33 maguireja/CVE-2020-25223/CVE-2020-25223.py:52 twentybel0w/CVE-2020-25223/CVE-2020-25223.py:33 twentybel0w/CVE-2020-25223/CVE-2020-25223.py:52
GET /shadow.txt
- Content-Type
application/json; charset=UTF-8- Ports
- 4444
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36- Seen in
- 2 repos: maguireja/CVE-2020-25223, twentybel0w/CVE-2020-25223
- Evidence
- maguireja/CVE-2020-25223/CVE-2020-25223.py:40 twentybel0w/CVE-2020-25223/CVE-2020-25223.py:40
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/var(?:[?#].*)?$
(?i)^/shadow\.txt(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [4443,4444] (msg:"GG PoC-Monitor CVE-2020-25223 Sophos SG UTM exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/var"; http.header; content:"Accept: text/javascript, text/html, application/xml, text/xml, */*"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header; content:"X-Prototype-Version: 1.5.1.1"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"|22|objs|22|"; http.request_body; content:"|22|FID|22|:|22|init|22|"; http.request_body; content:"|22|SID|22|"; http.request_body; content:"|22|browser|22|:|22|gecko_linux|22|"; http.request_body; content:"|22|backend_version|22|"; http.request_body; content:"|22|loc|22|"; http.request_body; content:"|22|SID|22|:|22||7c|cat /etc/shadow > /var/sec/chroot-httpd/var/webadmin/shadow.txt|7c||22|"; http.request_body; content:"|22|current_uuid|22|:|22||22|"; http.request_body; content:"|22|SID|22|:|22||7c|rm /var/sec/chroot-httpd/var/webadmin/shadow.txt|7c||22|"; reference:url,poc.griffinguard.io/cve/CVE-2020-25223; classtype:web-application-attack; sid:9099861; rev:1;)
alert http any any -> $HOME_NET [4444] (msg:"GG PoC-Monitor CVE-2020-25223 Sophos SG UTM exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/shadow.txt"; reference:url,poc.griffinguard.io/cve/CVE-2020-25223; classtype:web-application-attack; sid:9798366; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Sophos SG UTM exploit attempt (CVE-2020-25223)
id: gg-pocmon-cve-2020-25223-9099861
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-25223. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-25223
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/var'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.25223
title: Sophos SG UTM exploit attempt (CVE-2020-25223)
id: gg-pocmon-cve-2020-25223-9798366
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-25223. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-25223
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/shadow.txt'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.25223