CVE-2020-12271 in Sophos Sfos and 1 more product
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 r...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Sophos | Sfos | 17.0 17.1 17.5 18.0 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Sophos Xg Firewall
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Yes added 2021-11-03 |
|---|---|
| Public exploit | Not confirmed |
Official description
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 used for remote access (but not external Active Directory or LDAP passwords)
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-12271 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-277904-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2020-04-27 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-89: SQL Injection
Attacker inserts SQL commands into application queries through user-controlled input, allowing unauthorized database access.
Related attack patterns (CAPEC)
CAPEC-7 Blind SQL Injection via CWE-89
CAPEC-108 Command Line Execution through SQL Injection via CWE-89
CAPEC-109 Object Relational Mapping Injection via CWE-89
CAPEC-110 SQL Injection through SOAP Parameter Tampering via CWE-89
CAPEC-470 Expanding Control over the Operating System from the Database via CWE-89
Show all 6
CAPEC-66 SQL Injection via CWE-89
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A critical SQL injection vulnerability exists in multiple versions of Sophos XG Firewall, which could allow an attacker to execute remote code and exfiltrate sensitive information such as usernames and hashed passwords. The vulnerability has been exploited in the wild and is listed in the KEV catalog, indicating a high risk to affected systems.
The vulnerability can be exploited remotely without authentication, targeting Sophos XG Firewall devices running SFOS 17.0, 17.1, 17.5, and 18.0 before 2020-04-25. The attack vector involves injecting malicious SQL code into the administration (HTTPS) service or the User Portal exposed on the WAN zone, leading to potential remote code execution and data exfiltration.
Compensating controls AI-drafted, review before use
Implement network segmentation to isolate the Sophos XG Firewall from untrusted networks, and monitor traffic for suspicious activity. Ensure that only necessary services are exposed to the WAN.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2020-12271?
A critical SQL injection vulnerability exists in multiple versions of Sophos XG Firewall, which could allow an attacker to execute remote code and exfiltrate sensitive information such as usernames and hashed passwords. The vulnerability has been exploited in the wild and is listed in the KEV catalog, indicating a high risk to affected systems.
What is the CVSS score for CVE-2020-12271?
CVE-2020-12271 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 43.1%.
Is CVE-2020-12271 actively exploited?
Yes. CVE-2020-12271 is in the CISA known-exploited catalog (added 2021-11-03). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2020-12271?
Priority: IMMEDIATE. Advisory: https://community.sophos.com/kb/en-us/135412 PSIRT: [email protected]
What systems are affected by CVE-2020-12271?
CVE-2020-12271 affects Sophos Sfos.
What NERC-CIP standard applies to CVE-2020-12271?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the firewall, which could compromise the security of the control system and lead to unauthorized control actions.
What IEC 62443 requirement maps to CVE-2020-12271?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability in the firewall that could allow an attacker to gain unauthorized access and control over the system, potentially disrupting operations and compromising security.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Sophos","product":"Sfos","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.