CVE-2022-1040: Sophos Firewall Authentication Bypass Vulnerability
CVE-2022-1040 is a critical-severity flaw (CVSS 9.8) affecting sfos, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
An authentication bypass vulnerability in the User Portal and Webadmin allows a remote attacker to execute code in Sophos Firewall version v18.5 MR3 and older.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 99.8% (top 1%) |
| CISA exploited list | Yes, fix due 2022-04-21 |
| Published | 2022-03-25 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: jam620/Sophos-Vulnerability (18 stars)
- GitHub PoC: killvxk/CVE-2022-1040 (16 stars)
- GitHub PoC: Keith-amateur/cve-2022-1040 (3 stars)
- GitHub PoC: APTIRAN/CVE-2022-1040
- GitHub PoC: Cyb3rEnthusiast/CVE-2022-1040
- Exploit-DB: Sophos XG115w Firewall 17.0.10 MR-10 - Authentication Bypass
- Nuclei scan template: Sophos Firewall <=18.5 MR3 - Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-1040?
sfos: upgrade to newer than 18.5.3. Exact commands for each OS are on this page.
Is CVE-2022-1040 being exploited?
Yes. CVE-2022-1040 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2022-1040 affect?
CVE-2022-1040 affects sfos. Severity is critical (CVSS 9.8). An authentication bypass vulnerability in the User Portal and Webadmin allows a remote attacker to execute code in Sophos Firewall version v18.5 MR3 and older.
How urgent is CVE-2022-1040?
Priority 97/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2022-0331 MEDIUM 5.3 UPGRADE An information disclosure vulnerability in Webadmin allows an unauthenticated remote attacker to read the devi
- CVE-2020-12271 CRITICAL 9.8 EXPLOITED MITIGATE Sophos SFOS SQL Injection Vulnerability
- CVE-2020-11503 CRITICAL 9.8 UPGRADE A heap-based buffer overflow in the awarrensmtp component of Sophos XG Firewall v17.5 MR11 and older potential
- CVE-2018-16118 HIGH 8.1 UPGRADE A shell escape vulnerability in /webconsole/APIController in the API Configuration component of Sophos XG fire
- CVE-2018-16117 HIGH 8.8 UPGRADE A shell escape vulnerability in /webconsole/Controller in Admin Portal of Sophos XG firewall 17.0.8 MR-8 allow