CVE-2022-1040 is an authentication bypass in the User Portal and Webadmin of Sophos Firewall version 18.5 MR3 and older. A remote attacker who reaches either page can execute code on the firewall without logging in. NVD scores it 9.8, CISA lists it in KEV, and Sophos's release notes show the fix in SFOS 18.5 MR4 and 19.0 GA.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
99.8%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2022-1040 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Sophos Firewall (SFOS firmware) User Portal and Webadmin | cpe:2.3:o:sophos:sfos:*:*:*:*:*:*:*:* | 18.5 MR3 and older (CVE record; NVD CPE up to and including 18.5.3); fixed in SFOS 18.5 MR4 build 418 and 19.0 GA build 317 (Sophos release notes, NC-87665) |
What does this mean for affected devices?
CVE-2022-1040 is an authentication bypass in the User Portal and Webadmin of Sophos Firewall (SFOS) that "allows a remote attacker to execute code in Sophos Firewall version v18.5 MR3 and older", in the words of Sophos, the CNA (CVE record). The CVE record names Sophos advisory sophos-sa-20220325-sfos-rce as the vendor reference. NVD classifies the weakness as NVD-CWE-noinfo; CISA's KEV entry lists CWE-158.
NVD's Primary score is CVSS 3.1 9.8, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, with a Primary CVSS v2 score of 7.5; Sophos scores the same 9.8 vector (NVD).
Which Sophos firewalls are affected?
Sophos Firewall (SFOS) in version 18.5 MR3 and older, per the CNA record. NVD's CPE is cpe:2.3:o:sophos:sfos up to and including 18.5.3. The attack surface is the User Portal and the Webadmin console, so firewalls that expose either to untrusted networks carry the most risk.
How do you fix CVE-2022-1040?
Sophos's release notes list the fix as NC-87665, "Pre-auth RCE (CVE-2022-1040)", in SFOS 18.5 MR4 (build 418), and as "Fixed pre-auth RCE (CVE-2022-1040)" in SFOS 19.0 GA (build 317) (SFOS 18.5 release notes, SFOS 19.0 release notes). Moving to 18.5 MR4 or later, or to 19.0, closes it; KEV's required action is to apply updates per vendor instructions. Because the flaw sits in internet-facing management and portal pages, keeping Webadmin off the WAN zone and limiting the User Portal to trusted networks follows CISA's BOD 23-02. The next pre-auth flaw in the same components was CVE-2022-3236, and the 2020 SQL injection exploited through the same exposure is CVE-2020-12271.
Is CVE-2022-1040 exploited?
Yes. CISA added it to KEV on 2022-03-31 as "Sophos Firewall Authentication Bypass Vulnerability", due 2022-04-21, with the required action to apply updates per vendor instructions; known ransomware campaign use is Unknown. It is listed as of 2026-11-25 (catalog version 2026.11.24). FIRST EPSS gives 0.99796, the 99.96th percentile, in the 2026-11-24 dataset (CISA KEV, FIRST EPSS), and NVD's references include public exploit write-ups, so unpatched User Portal and Webadmin pages should be assumed to be probed. KEV and EPSS prioritization explains why this combination puts it at the front of a patch queue.
Evidence
- NVD: [email protected] Primary CVSS 3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H and Primary CVSS v2 7.5; [email protected] Secondary 9.8; CWE NVD-CWE-noinfo; CPE sfos up to including 18.5.3; references include Sophos advisory and public exploit write-ups; published 2022-03-25; status Analyzed; read 2026-11-25. — NVD
- CVE record (CNA Sophos, published 2022-03-25): authentication bypass in User Portal and Webadmin, code execution in Sophos Firewall v18.5 MR3 and older; CVSS 3.1 9.8; reference sophos-sa-20220325-sfos-rce. — CVE.org
- Sophos SFOS 18.5 release notes: version 18.5 MR4 build 418 fixed NC-87665 Pre-auth RCE (CVE-2022-1040). — Sophos
- Sophos SFOS 19.0 release notes: version 19.0 GA build 317 fixed NC-87665 Fixed pre-auth RCE (CVE-2022-1040). — Sophos
- CISA KEV catalog 2026.11.24: listed, dateAdded 2022-03-31, due 2022-04-21, knownRansomwareCampaignUse Unknown, CWE-158; required action apply updates per vendor instructions; checked 2026-11-25. — CISA KEV
- EPSS 0.99796, percentile 0.99957, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which Sophos Firewall versions are affected by CVE-2022-1040?
Sophos Firewall (SFOS) 18.5 MR3 and older, through the User Portal and Webadmin (per the Sophos CVE record; NVD's CPE runs up to and including 18.5.3).
Which SFOS release fixes CVE-2022-1040?
Sophos's release notes list the fix, issue NC-87665, in SFOS 18.5 MR4 (build 418) and in SFOS 19.0 GA (build 317).
Does CVE-2022-1040 need a login?
No. It is an authentication bypass in the User Portal and Webadmin; NVD's vector has no privileges and no user interaction, and the CNA says it allows a remote attacker to execute code.
Is CVE-2022-1040 in CISA KEV?
Yes. CISA added it on 2022-03-31 with a due date of 2022-04-21, ransomware use Unknown, and it is listed as of 2026-11-25 (catalog 2026.11.24). FIRST EPSS gives 0.99796, the 99.96th percentile, in the 2026-11-24 dataset.
Questions about this page?