The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-6704

CVE-2025-6704: Sophos Firewall Firmware RCE Vulnerability

CVE-2025-6704 is a remote code execution flaw in Sophos Firewall Firmware affecting the SPX feature. Attackers can exploit this pre-auth vulnerability in specific configurations. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 11, 2026

CVE-2025-6704 Overview

CVE-2025-6704 is an arbitrary file writing vulnerability in the Secure PDF eXchange (SPX) feature of Sophos Firewall. This critical vulnerability affects Sophos Firewall versions older than 21.0 MR2 (21.0.2) and can lead to pre-authentication remote code execution when a specific SPX configuration is enabled in combination with the firewall running in High Availability (HA) mode.

Critical Impact

Unauthenticated remote attackers can exploit this arbitrary file write vulnerability to achieve remote code execution on affected Sophos Firewall appliances, potentially gaining complete control of network security infrastructure.

Affected Products

  • Sophos Firewall Firmware versions prior to 21.0 MR2 (21.0.2)
  • Sophos Firewall hardware appliances running vulnerable firmware
  • Deployments with Secure PDF eXchange (SPX) feature enabled in High Availability (HA) mode

Discovery Timeline

  • July 21, 2025 - CVE-2025-6704 published to NVD
  • August 18, 2025 - Last updated in NVD database

Technical Details for CVE-2025-6704

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), which indicates the underlying mechanism enables command injection through the arbitrary file write primitive. The SPX feature, designed to provide secure email encryption capabilities for Sophos Firewall, contains a flaw that allows attackers to write arbitrary files to the system without authentication.

The vulnerability is particularly dangerous because it requires no user interaction and can be exploited remotely over the network without any prior authentication or privileges. When combined with the firewall operating in High Availability (HA) mode with specific SPX configurations, the arbitrary file write capability can be leveraged to achieve full remote code execution.

Root Cause

The root cause stems from insufficient input validation and access controls within the Secure PDF eXchange (SPX) feature. The SPX component fails to properly sanitize or restrict file write operations, allowing an attacker to specify arbitrary file paths and content. This file write primitive, combined with the elevated privileges under which the firewall services operate, creates a direct path to code execution.

The vulnerability is exacerbated when the firewall is configured in High Availability mode, as the synchronization mechanisms between HA nodes may expose additional attack surface or provide alternative paths for exploiting the file write vulnerability.

Attack Vector

An attacker can exploit CVE-2025-6704 by sending specially crafted requests to the SPX feature of an affected Sophos Firewall appliance. The attack is conducted over the network and requires no authentication, making it particularly dangerous for internet-facing firewall deployments.

The exploitation flow involves:

  1. Identifying a Sophos Firewall with SPX enabled and HA mode configured
  2. Crafting malicious requests to the SPX endpoint that trigger the arbitrary file write
  3. Writing malicious content to a location that enables code execution (e.g., web-accessible directories, scheduled task locations, or configuration files)
  4. Triggering execution of the written payload to gain shell access

For detailed technical information regarding the exploitation mechanism, refer to the Sophos Security Advisory.

Detection Methods for CVE-2025-6704

Indicators of Compromise

  • Unexpected file creation or modification in system directories on Sophos Firewall appliances
  • Anomalous HTTP/HTTPS requests targeting SPX-related endpoints
  • Unusual process execution originating from firewall services
  • Unauthorized configuration changes on HA-configured firewalls
  • Network traffic patterns indicating command and control activity from firewall IP addresses

Detection Strategies

  • Monitor Sophos Firewall logs for anomalous SPX-related activity and file system events
  • Implement network intrusion detection rules to identify exploitation attempts targeting the SPX feature
  • Deploy SentinelOne agents on infrastructure components to detect post-exploitation behavior
  • Configure SIEM correlation rules to alert on suspicious activity patterns from firewall management interfaces
  • Perform regular integrity verification of Sophos Firewall file systems

Monitoring Recommendations

  • Enable comprehensive logging on all Sophos Firewall appliances, particularly for SPX feature activity
  • Monitor outbound connections from firewall appliances for indicators of compromise
  • Implement file integrity monitoring for critical Sophos Firewall directories
  • Review HA synchronization logs for anomalous activity

How to Mitigate CVE-2025-6704

Immediate Actions Required

  • Upgrade all Sophos Firewall appliances to version 21.0 MR2 (21.0.2) or later immediately
  • Audit current SPX and HA configurations across the environment
  • Review firewall logs for indicators of prior exploitation attempts
  • Implement network segmentation to limit exposure of firewall management interfaces
  • Consider temporarily disabling SPX feature if upgrade cannot be performed immediately

Patch Information

Sophos has released firmware version 21.0 MR2 (21.0.2) which addresses this vulnerability. Organizations should apply this update as soon as possible. Detailed patch information and download links are available in the Sophos Security Advisory.

Given the pre-authentication nature of this vulnerability and its critical severity, patching should be treated as an emergency priority for all affected deployments.

Workarounds

  • Disable the Secure PDF eXchange (SPX) feature if not required for business operations until patching is complete
  • Restrict network access to firewall management interfaces to trusted administrator networks only
  • If HA mode is not essential, consider temporarily reverting to standalone configuration
  • Implement additional network-level access controls (ACLs) to limit which systems can communicate with the firewall management plane
  • Deploy web application firewall rules upstream if possible to filter potentially malicious requests to SPX endpoints
bash
# Verify current Sophos Firewall version via CLI
system diagnostics show version-info

# Check SPX feature status
show service-status spx

# Review HA configuration status
show ha status

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSophos Firewall

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.44%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Vendor Resources
  • Sophos Security Advisory
  • Related CVEs
  • CVE-2024-12729: Sophos Firewall Firmware RCE Vulnerability

  • CVE-2022-3236: Sophos Firewall RCE Vulnerability

  • CVE-2025-7624: Sophos Firewall Firmware SQLI Vulnerability

  • CVE-2024-12727: Sophos Firewall Firmware SQLI Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English