SecPod

Learn Search

Search across all Learn content

← Back to Security Research
Security Alert: Critical Remote Code Execution Vulnerability Discovered in Sophos Firewall

Security Alert: Critical Remote Code Execution Vulnerability Discovered in Sophos Firewall

Sophos has addressed three security flaws in Sophos Firewall products that could enable remote, unauthenticated attackers to execute SQL injection and remote code execution, as well as gain privileged SSH access to affected devices.

Dec 23, 2024By Saanidhya Dwivedi3 min read

Sophos has addressed three security flaws in Sophos Firewall products that could enable remote, unauthenticated attackers to execute SQL injection and remote code execution, as well as gain privileged SSH access to affected devices.

The vulnerabilities impact Sophos Firewall version 21.0 GA (21.0.0) and earlier. Sophos has already deployed hotfixes, which are installed by default and is providing permanent fixes through upcoming firmware updates.

Impact and Severity

The three security flaws are explained below:

  • CVE-2024-12727: According to security advisories, CVE-2024-12727 is an SQL injection vulnerability. Rated as critical with a CVSS score of 9.8, it has a pre-auth SQL injection vulnerability in the email protection feature. This vulnerability allows access to the reporting database of Sophos Firewall, which can lead to remote code execution if a specific configuration of Secure PDF Exchange (SPX) is enabled in combination with the firewall running in High Availability (HA) mode.An external security researcher identified and responsibly reported the issue, affecting approximately 0.05% of devices, to Sophos through the Sophos bug bounty program.
  • CVE-2024-12728: With a CVSS Score of 9.8, a weak credentials vulnerability exists due to the suggested non-random SSH login passphrase for High Availability (HA) cluster initialization. This passphrase remains active even after the HA setup is complete, potentially exposing a privileged account if SSH is enabled.This issue was discovered by Sophos during internal security testing.
  • CVE-2024-12729: According to security advisories, this vulnerability is a post-auth code injection vulnerability in the User Portal that allows authenticated users to gain remote code execution. It has a CVSS Score of 8.8, having high severity

Remediation and Hotfixes

Sophos has deployed hotfixes and workarounds for various versions and dates.

Hotfixes for CVE-2024-12727 have been available since December 17 for versions 21 GA, v20 GA, v20 MR1, v20 MR2, v20 MR3, v19.5 MR3, v19.5 MR4, and v19.0 MR2. A permanent fix has been introduced in v21 MR1 and newer.

For CVE-2024-12728, hotfixes were released between November 26 and 27 for v21 GA, v20 GA, v20 MR1, v19.5 GA, v19.5 MR1, v19.5 MR2, v19.5 MR3, v19.5 MR4, v19.0 MR2, and v20 MR2. Permanent fixes are included in v20 MR3, v21 MR1, and later versions.

For CVE-2024-12729, hotfixes were released between December 4 and 10 for versions v21 GA, v20 GA, v20 MR1, v20 MR2, v19.5 GA, v19.5 MR1, v19.5 MR2, v19.5 MR3, v19.5 MR4, v19.0 MR2, v19.0 MR3, and v20 MR3. A permanent fix is available in v21 MR1 and newer.

Sophos Firewall hotfixes are installed automatically by default. However, you can find instructions on how to apply them and verify successful installation in KBA-000010084 manually.

Workarounds

Sophos has outlined workarounds to help mitigate the risks posed by CVE-2024-12728 and CVE-2024-12729 for those who are unable to apply the hotfix or perform an upgrade.

To address CVE-2024-12728, it is recommended to limit SSH access to the dedicated HA link, ensuring it is physically separated from other network traffic. Additionally, administrators should reconfigure the HA setup with a strong, random, and unique passphrase.

For secure remote management, it is advised to disable SSH on the WAN interface and rely on Sophos Central or a VPN for access.

To mitigate CVE-2024-12729, administrators should make sure that the User Portal and Webadmin interfaces are not exposed to the WAN.

SanerNow Continuous Vulnerability and Exposure Management

SecPod SanerNow CVEM is a continuous vulnerability and exposure management solution designed to automatically detect, assess, prioritize, and remediate risks across your IT network. It supports all major operating systems and over 550+ third-party applications. With SanerNow, you can test patches before deployment, roll back if needed, and fully automate the patching process.

Featured Posts

Open CVE-2026-31431: From 732 Bytes to Root - Anatomy of a Modern Linux Privilege Escalation

CVE-2026-31431: From 732 Bytes to Root - Anatomy of a Modern Linux Privilege Escalation

CVE Research

CVE-2026-31431: From 732 Bytes to Root - Anatomy of a Modern Linux Privilege Escalation

Jun 24, 2026

Open CVE-2026-31431: The Nine-Year Kernel Bug Hiding in Plain Sight

CVE-2026-31431: The Nine-Year Kernel Bug Hiding in Plain Sight

CVE Research

CVE-2026-31431: The Nine-Year Kernel Bug Hiding in Plain Sight

Jun 23, 2026

Open Squidbleed: A 29-Year-Old Squid Proxy Flaw That Leaks Cleartext HTTP Requests
Squidbleed: A 29-Year-Old Squid Proxy Flaw That Leaks Cleartext HTTP Requests

CVE Research

Squidbleed: A 29-Year-Old Squid Proxy Flaw That Leaks Cleartext HTTP Requests

Jun 23, 2026

Open AryStinger Malware Leverages 4,300+ Legacy Routers to Establish Persistent Spy Infrastructure
AryStinger Malware Leverages 4,300+ Legacy Routers to Establish Persistent Spy Infrastructure

CVE Research

AryStinger Malware Leverages 4,300+ Legacy Routers to Establish Persistent Spy Infrastructure

AryStinger represents a calculated shift in IoT threat methodology, abandoning noisy, destructive payloads in favor of silent, long-term reconnaissance infrastructure. By exploiting unpatched, end-of-life routers and NAS devices through decade-old vulnerabilities, the threat operator has assembled a distributed fleet of over 4,300 Executor nodes capable of conducting parallelized DNS enumeration, port scanning, and service fingerprinting at scale, all while masking origin behind residential IP addresses. With active development ongoing and a potential operational timeline stretching back to 2024, AryStinger underscores a growing and underappreciated risk: forgotten edge hardware is not merely a compliance gap but exploitable infrastructure.

Jun 23, 2026

Security Alert: Critical Remote Code Execution Vulnerability Discovere | SecPod