Home / Sophos / Sophos Firewall / CVE-2025-6704
CVE-2025-6704: is it exploited, and which versions of Sophos Firewall are affected and fixed?
CVE-2025-6704 is an OS command injection vulnerability in Sophos Firewall. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: Sophos Firewall before 21.0 MR2 (21.0.2) (CVE record by Sophos). Fixed in 21.0 MR2 (21.0.2) (CVE record by Sophos). Severity: Critical (9.8, CVSS 3.1, from Sophos).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:18 UTC.
What is CVE-2025-6704?
An arbitrary file writing vulnerability in the Secure PDF eXchange (SPX) feature of Sophos Firewall versions older than 21.0 MR2 (21.0.2) can lead to pre-auth remote code execution, if a specific configuration of SPX is enabled in combination with the firewall running in High Availability (HA) mode.
From the CVE record by Sophos, last updated July 21, 2025, 15:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Sophos | Sophos Firewall | before 21.0 MR2 (21.0.2) | 21.0 MR2 (21.0.2) |
As the CVE record by Sophos states it, last updated July 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sophos | firewall firmware | before 21.0.2 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 10:02 UTC.
How severe is CVE-2025-6704?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | Sophos |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-6704 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, July 21, 2025)
- EPSS
- 11.8% probability of exploitation activity in the next 30 days, percentile 96.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
When was it published, and where is the official record?
- Reserved
- June 26, 2025
- Published
- July 21, 2025, 13:16 UTC
- CVE record updated
- July 21, 2025, 15:07 UTC by Sophos
- NVD
- Analyzed, last modified June 17, 2026, 10:02 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:18 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Sophos Firewall?
- Sep 23, 2022CVE-2022-3236 Sophos Firewall: code injection (remote code execution) exploited
- Mar 25, 2022CVE-2022-1040 Sophos Firewall: n/a exploited
- Jul 21, 2025CVE-2024-13973 Sophos Firewall: SQL injection
- Jul 21, 2025CVE-2024-13974 Sophos Firewall: reliance on Untrusted Inputs in a Security Decision
- Jul 21, 2025CVE-2025-7382 Sophos Firewall: OS command injection
- Jul 21, 2025CVE-2025-7624 Sophos Firewall: SQL injection
- Dec 19, 2024CVE-2024-12729 Sophos Firewall: code injection (remote code execution)
- Dec 19, 2024CVE-2024-12728 Sophos Firewall: weak credentials
Questions about CVE-2025-6704
Is CVE-2025-6704 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 11.8% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Sophos Firewall are affected by CVE-2025-6704?
Sophos Firewall before 21.0 MR2 (21.0.2), per the CVE record by Sophos. The tables above give every range the sources list.
Which version fixes CVE-2025-6704?
21.0 MR2 (21.0.2), per the CVE record by Sophos. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-6704?
Critical (9.8, CVSS 3.1, from Sophos). The severity table above shows each score with its source.
Where is the official record of CVE-2025-6704?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.