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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-12727

CVE-2024-12727: Sophos Firewall Firmware SQLI Vulnerability

CVE-2024-12727 is a pre-authentication SQL injection flaw in Sophos Firewall's email protection that enables database access and potential RCE. This article covers the technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2024-12727 Overview

CVE-2024-12727 is a pre-authentication SQL injection vulnerability in the email protection feature of Sophos Firewall. The flaw affects versions older than 21.0 MR1 (21.0.1) and allows unauthenticated attackers to access the reporting database over the network. Under specific conditions, the vulnerability can escalate to remote code execution. Exploitation requires the firewall to run in High Availability (HA) mode with a particular Secure PDF eXchange (SPX) configuration enabled. The vulnerability is tracked under [CWE-89] (Improper Neutralization of Special Elements used in an SQL Command).

Critical Impact

Unauthenticated network attackers can read the reporting database and, with a specific SPX and HA configuration, achieve remote code execution on the firewall.

Affected Products

  • Sophos Firewall Firmware versions older than 21.0 MR1 (21.0.1)
  • Sophos Firewall appliances running affected firmware
  • Deployments with Secure PDF eXchange (SPX) enabled in High Availability (HA) mode

Discovery Timeline

  • 2024-12-19 - CVE-2024-12727 published to NVD
  • 2024-12-19 - Sophos publishes security advisory sophos-sa-20241219-sfos-rce
  • 2025-11-12 - Last updated in NVD database

Technical Details for CVE-2024-12727

Vulnerability Analysis

The vulnerability resides in the email protection component of Sophos Firewall. Attacker-controlled input reaches a SQL query without proper sanitization or parameterization. Because the affected endpoint is reachable prior to authentication, attackers do not need valid credentials to send malicious payloads. Successful injection grants direct query access to the reporting database used by the firewall.

Read access alone discloses sensitive operational data, including logged events, reporting metadata, and potentially credentials or tokens stored within the schema. When the firewall runs in High Availability mode and a specific Secure PDF eXchange configuration is active, the SQL injection chain can be leveraged to execute arbitrary code on the appliance. This elevates the issue from data disclosure to full device compromise.

Root Cause

The root cause is improper neutralization of user-supplied input within an SQL statement processed by the email protection feature [CWE-89]. The affected code path constructs queries using untrusted data without using prepared statements or strict input validation. The pre-authentication exposure of this endpoint compounds the severity by removing any access barrier.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker sends a crafted request to the email protection interface of an affected Sophos Firewall. The injected SQL executes against the reporting database, returning data or, in vulnerable HA + SPX configurations, triggering follow-on logic that results in remote code execution. The EPSS score of 3.123% (86.996 percentile) reflects elevated exploitation likelihood relative to the broader CVE population.

No verified public proof-of-concept code is available at the time of writing. The vulnerability mechanism is described in prose; refer to the Sophos Security Advisory for vendor-confirmed technical details.

Detection Methods for CVE-2024-12727

Indicators of Compromise

  • Unexpected inbound HTTP/HTTPS requests to the email protection interface from untrusted sources prior to authentication
  • Anomalous queries or error entries in firewall reporting database logs containing SQL syntax artifacts such as UNION SELECT, --, or stacked statements
  • Unexpected child processes or shell activity spawned by firewall services on HA-paired appliances with SPX enabled
  • New or modified administrative accounts, configuration changes, or scheduled tasks not initiated by authorized administrators

Detection Strategies

  • Inspect web access logs on the firewall management and email protection endpoints for malformed query strings and SQL metacharacters
  • Correlate authentication events with database query activity to identify unauthenticated database access
  • Monitor HA synchronization channels for unexpected configuration or binary changes between paired devices

Monitoring Recommendations

  • Forward Sophos Firewall logs to a centralized SIEM or data lake for retention and behavioral analysis
  • Alert on outbound connections originating from the firewall management plane to unfamiliar destinations
  • Baseline normal SPX processing volumes and flag deviations that may indicate exploitation attempts

How to Mitigate CVE-2024-12727

Immediate Actions Required

  • Upgrade Sophos Firewall to version 21.0 MR1 (21.0.1) or later as published in the vendor advisory
  • Restrict management and email protection interface exposure to trusted networks only
  • Review HA pairs running SPX for signs of compromise and rotate credentials, certificates, and API tokens stored on the device
  • Audit administrator accounts and recent configuration changes for unauthorized modifications

Patch Information

Sophos has released fixed firmware in version 21.0 MR1 (21.0.1). Administrators should apply the update via the Sophos Firewall management console or the standard firmware upgrade procedure. Full remediation details are available in the Sophos Security Advisory.

Workarounds

  • Disable Secure PDF eXchange (SPX) on firewalls running in High Availability mode if the feature is not required, which removes the RCE escalation path
  • Limit network reachability of the email protection feature to trusted management networks using ACLs or upstream filtering
  • Enforce strict change control and monitor configuration drift on HA pairs until patching is completed
bash
# Configuration example: verify installed firmware version on Sophos Firewall
# From the CLI advanced shell, confirm version is 21.0.1 or later
system diagnostics show version-info

# Restrict management access to trusted networks via Local Service ACL
# (perform via WebAdmin: Administration > Device Access)
# Allow only defined admin subnets to reach HTTPS, SSH, and email protection services

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechSophos Firewall

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.12%

  • 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-89
  • Vendor Resources
  • Sophos Security Advisory
  • Related CVEs
  • CVE-2025-7624: Sophos Firewall Firmware SQLi Vulnerability

  • CVE-2024-12728: Sophos Firewall Auth Bypass Vulnerability

  • CVE-2024-12729: Sophos Firewall Firmware RCE Vulnerability

  • CVE-2022-3236: Sophos Firewall RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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