Skip to content
Server Security Center
KEVcritical10.0 Used in ransomware campaigns

CVE-2020-12271: Sophos SFOS SQL Injection

Sophos SFOS · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.

CVSS v3.0 (CVE record)
10.0
critical
EPSS (exploit probability, 30 days)
43%
higher than 98.7% of all CVEs
Added to CISA KEV
2021-11-03
US federal due date 2022-05-03
Automatable (CISA SSVC)
yes
technical impact: total

CVE-2020-12271 explained

CVE-2020-12271 is a SQL injection vulnerability in Sophos SFOS on Sophos XG Firewall devices. It affected devices exposing the administration (HTTPS) service or the User Portal on the WAN zone and was exploited in the wild in April 2020. CISA lists it as known exploited, including in ransomware campaigns.

Impact

An unauthenticated remote attacker could exploit the flaw over the network without user interaction. 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. External Active Directory or LDAP passwords were not affected. CISA rates it automatable with total technical impact. Attackers, including ransomware operators, are known to use it.

Who is affected

The description names SFOS 17.0, 17.1, 17.5 and 18.0 before 2020-04-25 on Sophos XG Firewall devices. Only devices with the administration (HTTPS) service or the User Portal exposed on the WAN zone were affected. The CVE record's structured data lists no affected versions, and it names no fixed version. Check the Sophos advisory for the fixed releases.

Written with AI from the data on this page and checked against it automatically.

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)

CISA required action: Apply updates per vendor instructions.

CISA notes

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: community.sophos.com/kb/en-us/135412
  • CISA's deadline for US federal agencies: 2022-05-03 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Apply updates per Sophos instructions, as CISA's required action states.
  2. Confirm that your SFOS devices have received the fix released for this issue.
  3. Remove the administration (HTTPS) service and User Portal from the WAN zone where not required.
  4. Reset passwords for local device admins, portal admins and remote access user accounts.
  5. Reset reused credentials on other systems and check devices for signs of compromise.

The CVE record names no fixed version. Follow the Sophos vendor advisory and CISA's required action to apply updates per vendor instructions. Until updates are confirmed, keep the administration (HTTPS) service and User Portal off the WAN zone, reset exposed credentials and check devices for signs of compromise.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Questions about CVE-2020-12271

Was my device at risk?
Devices running SFOS 17.0, 17.1, 17.5 or 18.0 before 2020-04-25 were at risk if the administration (HTTPS) service or User Portal was exposed on the WAN zone.
Which credentials could have been stolen?
Usernames and hashed passwords for local device admins, portal admins and remote access user accounts. External Active Directory or LDAP passwords were not exposed. Reset the affected passwords.
Is this vulnerability actively exploited?
Yes. It was exploited in the wild in April 2020. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03 and notes known ransomware use.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.