CVE-2020-12271 Sophos SFOS SQL Injection
Remote attackers can execute code and steal credentials on Sophos XG Firewalls if admin or user portals are exposed to the WAN.
- Exploited in the wild
- Since 3 Nov 2021
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-12271?
CVE-2020-12271 is a critical SQL injection vulnerability in n/a, published on 27 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
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)
Weakness: CWE-89
Which versions are affected by CVE-2020-12271?
It affects 1 product.
Products include Sophos Sfos.
How do I fix CVE-2020-12271?
No fix has been published for CVE-2020-12271 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2020-12271 being exploited?
Yes. Attackers have exploited CVE-2020-12271 in the wild since at least 3 Nov 2021, including in ransomware campaigns.
Other vulnerabilities in n/a
Sources
Also known as GHSA-hv48-76w3-p5fp.