Remote code executionin Sophos SFOS.
On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 3 Nov 2021. Ransomware groups use it too.
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)
CISA: 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).
- CISA requires US federal agencies to fix it by 3 May 2022.
Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 27 Apr 2020CVE ID reserved by mitre.
- 27 Apr 2020Published in the CVE List.
- 3 Nov 2021Added to CISA's Known Exploited Vulnerabilities list.
- 3 Nov 2021CISA lists known use in ransomware campaigns.
- 21 Oct 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Same weakness: SQL injection
- cwe.mitre.org x_refsource_MISC
- community.sophos.com x_refsource_MISC
- news.sophos.com x_refsource_MISC
- www.cisa.gov government-resource
Patchminder. CVE-2020-12271: Remote code execution in Sophos SFOS. https://patchminder.com/cve/cve-2020-12271/ (accessed 5 December 2026).