CVE-2020-12271

Sophos SFOS SQL Injection Vulnerability

Actively exploited · CISA KEV Ransomware use: known
9.8 CriticalCVSS v3.1
43.1%EPSS (30-day exploit probability)
2021-11-03added to KEV
2022-05-03CISA federal due date

Summary

Sophos SFOS. 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)

CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-89
Published
2020-04-27 (last modified 2026-06-17)

What to do

Apply updates per vendor instructions.

  1. Find every instance of Sophos SFOS in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2020-12271 being exploited?

Yes. CISA added CVE-2020-12271 to its Known Exploited Vulnerabilities catalog on 2021-11-03, which means there is reliable evidence of active exploitation. It is also known to be used in ransomware campaigns.

How do I fix CVE-2020-12271?

CISA required action: Apply updates per vendor instructions.

What is the EPSS score for CVE-2020-12271?

The EPSS score is 43.06%, meaning an estimated 43.06% probability of exploitation activity in the next 30 days (percentile 99).

Other exploited Sophos vulnerabilities

CVE-2020-29574CyberoamOS (CROS) SQL Injection Vulnerability2025-02-06
CVE-2020-15069Sophos XG Firewall Buffer Overflow Vulnerability2025-02-06
CVE-2023-1671Sophos Web Appliance Command Injection Vulnerability2023-11-16
CVE-2022-3236Sophos Firewall Code Injection Vulnerability2022-09-23
CVE-2022-1040Sophos Firewall Authentication Bypass Vulnerability2022-03-31
CVE-2020-25223Sophos SG UTM Remote Code Execution Vulnerability2022-03-25

All Sophos exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.

This product uses the NVD API but is not endorsed or certified by the NVD. CVSS is owned by FIRST and used by permission; scores are shown with their vector string. Credits & licences