CVE-2022-1040: Authentication Bypass and Remote Code Execution in Sophos Firewall
- Vendor
- Sophos
CVE-2022-1040 is an authentication bypass vulnerability in the User Portal and Webadmin interfaces of Sophos Firewall version 18.5 MR3 (18.5.3) and earlier. A remote, unauthenticated attacker with network access to either interface can bypass authentication and execute arbitrary code on the firewall. The vulnerability has a CVSS score of 9.8 and was exploited as a zero-day, including by TA413, before its public disclosure in March 2022.
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 compromises the affected firewall through unauthenticated arbitrary code execution, threatening the confidentiality, integrity, and availability of the appliance. Attackers can deploy backdoors and use the compromised edge device to support persistent access and subsequent network intrusion. GoMet deployment has been observed following exploitation of this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Disable WAN access to the User Portal and Webadmin interfaces. Use VPN access or Sophos Central for remote access and management rather than exposing these interfaces directly to the internet. Restrict interface access to trusted networks.
Remediation
Patch, then assume compromise.
Apply the Sophos hotfix for CVE-2022-1040 and verify that installation succeeded. Automatic hotfix installation is enabled by default; enabled devices check for hotfixes every 30 minutes and after restarting. Older versions and end-of-life products may require manual remediation according to Sophos guidance. Ensure the firewall is maintained on a supported, updated release.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
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.
References
Frequently asked questions
- Is CVE-2022-1040 exploited in the wild?
- Yes. As of Nov 13, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 31, 2022.
- Is there a public exploit for CVE-2022-1040?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2022-1040, the earliest disclosed Oct 7, 2022.
- Is there a patch for CVE-2022-1040?
- Apply the Sophos hotfix for CVE-2022-1040 and verify that installation succeeded. Automatic hotfix installation is enabled by default; enabled devices check for hotfixes every 30 minutes and after restarting.
- What products are affected by CVE-2022-1040?
- Sophos Sfos.
- How severe is CVE-2022-1040?
- CVE-2022-1040 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.8% (100th percentile) as of Nov 13, 2026.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.