CVE-2020-12271: Sophos SFOS SQL Injection Vulnerability
Yes. CVE-2020-12271 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 3 November 2021. It is known to have been used in ransomware campaigns. We found no public exploit code for it in Exploit-DB, Metasploit or Nuclei, so the attacks rely on tooling that is not openly published in those sources. EPSS puts the chance of further exploitation attempts in the next 30 days at 43.1%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 3 November 2021
- Used in ransomware
- Yes, known ransomware use
- Public exploit code
- None found in Exploit-DB, Metasploit or Nuclei
- Chance of exploitation (EPSS)
- 43.1% in the next 30 days, higher than 98.8% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 10.0 Critical (version 3.0)
- Affects
- Sophos SFOS
- Type of flaw
- SQL injection (CWE-89)
- Published
- 27 April 2020
- US federal patch deadline
- 3 May 2022
What it is
Sophos Firewall operating system (SFOS) firmware contains a SQL injection vulnerability when configured with either the administration (HTTPS) service or the User Portal is exposed on the WAN zone. Successful exploitation may cause remote code execution to exfiltrate 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).
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)
Description from the CVE record.
Is CVE-2020-12271 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2020-12271 on 3 November 2021. CISA also marks it as known to be used in ransomware campaigns.
What to do
CISA's required action: Apply updates per vendor instructions.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place Sophos SFOS runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in SFOS. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in Sophos products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2020-15069 | Sophos XG Firewall | No public exploit found | 10.4% | 29 June 2020 |
| CVE-2020-29574 | Sophos CyberoamOS | Ransomware | 4.7% | 11 December 2020 |
| CVE-2023-1671 | Sophos Web Appliance | Public exploit | 99.9% | 4 April 2023 |
| CVE-2022-3236 | Sophos Firewall | Public exploit | 98.9% | 23 September 2022 |
| CVE-2022-1040 | Sophos Firewall | Public exploit | 99.8% | 25 March 2022 |
| CVE-2020-25223 | Sophos SG UTM | Public exploit | 96.8% | 25 September 2020 |
Sources
- CVE record for CVE-2020-12271
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- cwe.mitre.org (x_refsource_MISC)
- community.sophos.com (x_refsource_MISC)
- news.sophos.com (x_refsource_MISC)
Machine-readable: /api/cve/CVE-2020-12271.json