CVE-2020-12271 is a SQL injection flaw in SFOS, the firmware of Sophos XG Firewall, versions 17.0 to 18.0. On firewalls with the admin service or User Portal exposed on the WAN, attackers in April 2020 used it to run code and steal admin and VPN user password hashes. NVD scores it 9.8, CISA lists it in KEV with known ransomware use, and Sophos fixed it in SFOS 18.0 builds and hotfixes.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
43.1%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2020-12271 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Sophos XG Firewall (SFOS firmware) with HTTPS admin service or User Portal on the WAN zone | cpe:2.3:o:sophos:sfos:*:*:*:*:*:*:*:* | SFOS 17.0, 17.1, 17.5 and 18.0 before the 2020-04-25 fix (CVE record, NVD CPE); fix listed in SFOS 18.0 build 379 (NC-59408) and rolled into 18.0.1 MR1 build 396 (Sophos release notes) |
What does this mean for affected devices?
CVE-2020-12271 is a SQL injection flaw (CWE-89) in SFOS, the firmware of Sophos XG Firewall appliances. The CVE record says it affects "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", on devices that had 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 local device admins, portal admins and remote access user accounts, but not external Active Directory or LDAP passwords (CVE record).
NVD's Primary score is CVSS 3.1 9.8, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, with a Primary CVSS v2 score of 7.5. MITRE, the CNA, scores CVSS 3.0 10.0 (S:C) (NVD).
Which Sophos firewalls are affected?
Sophos XG Firewall appliances running SFOS 17.0, 17.1, 17.5 or 18.0 before the 2020-04-25 fix, which are the four versions in NVD's CPE list. Exposure depended on configuration: the HTTPS administration service or the User Portal had to be reachable on the WAN zone. CISA's KEV entry describes the same condition for "Sophos Firewall operating system (SFOS) firmware".
How do you fix CVE-2020-12271?
Sophos's SFOS 18.0 release notes list the fix under build 379 as NC-59408, "SQLi prevention in hybrid request - ORM fields and mode parameters (CVE-2020-12271)", and say that the security hotfixes released up to then are part of SFOS 18.0.1 MR1 (build 396), so the hotfixes HF051220.1 and HF052220.1 referred to in Sophos's article "Fixing SQL injection vulnerability and malicious code execution in XG Firewall/SFOS" are not needed on that release (Sophos SFOS 18.0 release notes). For any appliance that ran an affected version with the admin service or User Portal on the WAN, the CVE text means local admin, portal admin and remote access account passwords should be treated as exposed and changed. Moving the HTTPS administration service off the WAN zone is the device form of CISA's BOD 23-02. The 2022 pre-auth flaws in the same User Portal and Webadmin are CVE-2022-1040 and CVE-2022-3236.
Is CVE-2020-12271 exploited?
Yes. The CVE record says it was exploited in the wild in April 2020, and CISA's KEV entry marks known ransomware campaign use as Known. CISA added it to KEV on 2021-11-03 as "Sophos SFOS SQL Injection Vulnerability", due 2022-05-03, with the required action to apply updates per vendor instructions. It is listed as of 2026-11-25 (catalog version 2026.11.24). FIRST EPSS gives 0.43062, the 98.74th percentile, in the 2026-11-24 dataset (CISA KEV, FIRST EPSS). A KEV entry with known ransomware use ranks at the top of the queue in KEV and EPSS prioritization.
Evidence
- NVD: [email protected] Primary CVSS 3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H and Primary CVSS v2 7.5; [email protected] Secondary CVSS 3.0 10.0 S:C; CWE-89; CPEs sfos 17.0, 17.1, 17.5, 18.0; published 2020-04-27; status Analyzed; read 2026-11-25. — NVD
- CVE record (CNA MITRE, published 2020-04-27): SQL injection in SFOS 17.0, 17.1, 17.5 and 18.0 before 2020-04-25 on XG Firewall, exploited in the wild April 2020, admin HTTPS or User Portal on WAN, exfiltration of local admin, portal admin and remote access account credentials, not external AD/LDAP. — CVE.org
- Sophos SFOS 18.0 release notes: build 379 fixed issue NC-59408 SQLi prevention (CVE-2020-12271); 18.0.1 MR1 build 396 includes security hotfixes released until then, hotfixes HF051220.1 and HF052220.1 referred to in 'Fixing SQL injection vulnerability and malicious code execution in XG Firewall/SFOS' not required. — Sophos
- CISA KEV catalog 2026.11.24: listed, dateAdded 2021-11-03, due 2022-05-03, knownRansomwareCampaignUse Known, CWE-89; required action apply updates per vendor instructions; checked 2026-11-25. — CISA KEV
- EPSS 0.43062, percentile 0.98742, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Was my XG Firewall exposed to CVE-2020-12271?
Only if it ran SFOS 17.0, 17.1, 17.5 or 18.0 before the 2020-04-25 fix and had the HTTPS administration service or the User Portal exposed on the WAN zone (per the CVE record and CISA KEV).
Which SFOS release contains the CVE-2020-12271 fix?
Sophos's SFOS 18.0 release notes list the fix in build 379 (NC-59408) and say all security hotfixes released until then are part of 18.0.1 MR1, build 396.
What data was at risk from CVE-2020-12271?
The CVE record says a successful attack may have exfiltrated usernames and hashed passwords of local device admins, portal admins and remote access user accounts, but not external Active Directory or LDAP passwords. Those local credentials should be changed.
Is CVE-2020-12271 linked to ransomware?
Yes. CISA's KEV entry, added 2021-11-03, marks known ransomware campaign use as Known, and the CVE is listed as of 2026-11-25 (catalog 2026.11.24). FIRST EPSS gives 0.43062, the 98.74th percentile, in the 2026-11-24 dataset.
Questions about this page?