Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2020-12271: SQL Injection in Sophos XG Firewall

Published Apr 27, 2020 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS43.1%99th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Sophos
IdentifiersCVE-2020-12271CWE-89 · Improper Neutralization of Special…

CVE-2020-12271 is a SQL injection vulnerability affecting Sophos XG Firewall devices running SFOS 17.0, 17.1, 17.5, and 18.0 before April 25, 2020. Devices exposing the HTTPS administration service or User Portal on the WAN zone were affected. Attackers exploited the vulnerability against the firewall's built-in PostgreSQL database to execute code and install malware, including the Asnarök credential-stealing trojan and backdoors. Exploitation was observed in the wild in April 2020.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation could result in remote code execution and disclosure of usernames and hashed passwords belonging to local device administrators, portal administrators, and remote-access users. External Active Directory and LDAP passwords were excluded from the described credential exposure. Observed attacks installed credential-stealing malware and backdoors on compromised firewalls. Attackers subsequently attempted to deploy ransomware to internal Windows computers using additional exploits and implants; successful ransomware installation was not confirmed, and Sophos reported that patched firewalls blocked this attack chain.

Mitigation

If you can’t patch tonight, do this now.

Restrict WAN access to the HTTPS administration service and User Portal to reduce exposure while patching. Keep computers behind the firewall updated, particularly against the Windows vulnerabilities used in the subsequent ransomware attack chain. Exposure restrictions and internal-system updates do not replace patching the firewall.

Remediation

Patch, then assume compromise.

Apply the Sophos hotfix for CVE-2020-12271 or vendor security updates that incorporate the fix. Verify that the update was installed, particularly on devices without automatic updates enabled. Sophos distributed the hotfix automatically to firewalls with automatic updates enabled and reported that it removed the attack malware and both backdoor mechanisms.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
SophosSfosoperating_system
FAQ

Frequently asked questions

Is CVE-2020-12271 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2020-12271?
Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2020-12271.
Is there a patch for CVE-2020-12271?
Apply the Sophos hotfix for CVE-2020-12271 or vendor security updates that incorporate the fix. Verify that the update was installed, particularly on devices without automatic updates enabled.
What products are affected by CVE-2020-12271?
Sophos Sfos.
How severe is CVE-2020-12271?
CVE-2020-12271 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 43.1% (99th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
cveNews · Jan 1, 2026CVE Record: CVE-2020-12271A critical SQL injection vulnerability in Sophos XG Firewall running SFOS 17.0, 17.1, 17.5, or 18.0 before April 25, 2020. It affected devices exposing the HTTPS administration service or User Portal on the WAN zone and was exploited in April 2020. Successful attacks could cause remote code execution and exfiltrate usernames and hashed passwords for local device administrators, portal administrators, and remote-access users. External Active Directory and LDAP passwords were excluded. The record assigns a CVSS v3.0 score of 10.0.Read more ↗us department of justiceNews · Dec 10, 2024Office of Public Affairs | China-Based Hacker Charged for Conspiring to Develop and Deploy Malware That Exploited Tens of Thousands of Firewalls Worldwide | United States Department of JusticeA previously unknown vulnerability in Sophos firewalls allegedly exploited by Guan Tianfeng and co-conspirators working at Sichuan Silence to infect approximately 81,000 devices worldwide and steal information. After Sophos remediated affected firewalls, the attackers modified their malware to deploy ransomware-derived encryption software if victims attempted removal. The encryption attempts failed. The allegations remain unproven.Read more ↗the hacker newsNews · Nov 11, 2024THN Recap: Top Cybersecurity Threats, Tools, and Practices (Nov 04 - Nov 10)A vulnerability in Sophos edge infrastructure appliances that has been exploited by Chinese state-sponsored threat actors for persistent remote access and proxying attacks.Read more ↗fbiNews · Oct 17, 2024EDGE DEVICE INTRUSIONS - FBIA vulnerability allegedly exploited by an unnamed advanced persistent threat group through deployed malware during widespread firewall intrusions intended to steal sensitive data. The FBI is investigating the intrusions and seeking information identifying those responsible. The content does not describe the vulnerability's technical mechanism.Read more ↗
+4 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware3Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.