Ameeba Chat App store presentation
Download Ameeba Chat Today
Ameeba Blog Search

CVE-2025-6704: Arbitrary File Writing Vulnerability in Secure PDF eXchange (SPX) of Sophos Firewall

Ameeba’s Mission: Safeguarding privacy by securing data and communication with our patented anonymization technology.

Overview

CVE-2025-6704 is a critical vulnerability that exists in the Secure PDF eXchange (SPX) feature of Sophos Firewall. This vulnerability, if exploited, could allow an attacker to execute remote code without authentication, potentially leading to system compromise or data leakage. Users utilizing Sophos Firewall versions below 21.0 MR2 (21.0.2) that run in High Availability (HA) mode combined with a specific SPX configuration are affected. The severity of this vulnerability makes it imperative for security administrators and IT professionals to prioritize its mitigation.

Vulnerability Summary

CVE ID: CVE-2025-6704
Severity: Critical (CVSS: 9.8)
Attack Vector: Network
Privileges Required: None
User Interaction: None
Impact: Potential system compromise or data leakage

Affected Products

Ameeba Chat Icon Escape the Surveillance Era

Most apps won’t tell you the truth.
They’re part of the problem.

Phone numbers. Emails. Profiles. Logs.
It’s all fuel for surveillance.

Ameeba Chat gives you a way out.

  • • No phone number
  • • No email
  • • No personal info
  • • Anonymous aliases
  • • End-to-end encrypted

Chat without a trace.

Product | Affected Versions

Sophos Firewall | Versions older than 21.0 MR2 (21.0.2)

How the Exploit Works

The vulnerability lies in the SPX feature of Sophos Firewall. When the firewall runs in High Availability mode with a specific configuration of SPX enabled, it exposes an arbitrary file writing flaw. This vulnerability can be exploited by a remote attacker over the network without requiring any form of authentication or user interaction. Once exploited, this vulnerability allows the attacker to execute arbitrary code on the system, potentially leading to a system compromise or data leakage.

Conceptual Example Code

Given the nature of the vulnerability, an attacker could exploit it by sending a specifically crafted HTTP request to the vulnerable endpoint. Below is a conceptual example of what this HTTP request might look like:

POST /sophos/spx/vulnerable/endpoint HTTP/1.1
Host: target.example.com
Content-Type: application/json
{ "malicious_payload": "arbitrary_code_to_execute" }

In this example, the “malicious_payload” would contain the arbitrary code that the attacker wants to execute on the system. Once the request is processed by the server, the code is written to an arbitrary file and executed, leading to potential system compromise or data leakage.
Finally, it is important to note that this is a high-severity vulnerability which requires immediate attention. The recommended mitigation steps include applying the vendor patch or using Web Application Firewall (WAF) or Intrusion Detection System (IDS) as a temporary measure.

Talk freely. Stay anonymous with Ameeba Chat.

Disclaimer:

The information and code presented in this article are provided for educational and defensive cybersecurity purposes only. Any conceptual or pseudocode examples are simplified representations intended to raise awareness and promote secure development and system configuration practices.

Do not use this information to attempt unauthorized access or exploit vulnerabilities on systems that you do not own or have explicit permission to test.

Ameeba and its authors do not endorse or condone malicious behavior and are not responsible for misuse of the content. Always follow ethical hacking guidelines, responsible disclosure practices, and local laws.
Ameeba Chat