CVE-2020-12271: Sophos SFOS SQL Injection Vulnerability
CVE-2020-12271 is a critical-severity flaw (CVSS 9.8) affecting sfos, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
A SQL injection issue was found in SFOS 17.0, 17.1, 17.5, and 18.0 before 2020-04-25 on Sophos XG Firewall devices, as exploited in the wild in April 2020. This affected devices configured with either the administration (HTTPS) service or the User Portal exposed on the WAN zone. A successful attack may have caused remote code execution that exfiltrated usernames and hashed passwords for the local device admin(s), portal admins, and user accounts
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Used in ransomware campaigns
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 42.4% (top 1%) |
| CISA exploited list | Yes, fix due 2022-05-03, used in ransomware |
| Weakness | CWE-89 |
| Published | 2020-04-27 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: Live-Hack-CVE/CVE-2020-12271
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2020-12271?
sfos: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2020-12271 being exploited?
Yes. CVE-2020-12271 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2020-12271 affect?
CVE-2020-12271 affects sfos. Severity is critical (CVSS 9.8). A SQL injection issue was found in SFOS 17.0, 17.1, 17.5, and 18.0 before 2020-04-25 on Sophos XG Firewall devices, as exploited in the wild in April 2020. This affected devices configured with either the administration (HTTPS) service or t
How urgent is CVE-2020-12271?
Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Used in ransomware campaigns; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2022-1040 CRITICAL 9.8 EXPLOITED UPGRADE Sophos Firewall Authentication Bypass Vulnerability
- CVE-2022-0331 MEDIUM 5.3 UPGRADE An information disclosure vulnerability in Webadmin allows an unauthenticated remote attacker to read the devi
- CVE-2020-11503 CRITICAL 9.8 UPGRADE A heap-based buffer overflow in the awarrensmtp component of Sophos XG Firewall v17.5 MR11 and older potential
- CVE-2018-16118 HIGH 8.1 UPGRADE A shell escape vulnerability in /webconsole/APIController in the API Configuration component of Sophos XG fire
- CVE-2018-16117 HIGH 8.8 UPGRADE A shell escape vulnerability in /webconsole/Controller in Admin Portal of Sophos XG firewall 17.0.8 MR-8 allow