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-7624

CVE-2025-7624: Sophos Firewall Firmware SQLI Vulnerability

CVE-2025-7624 is an SQL injection flaw in Sophos Firewall Firmware's legacy SMTP proxy that can lead to remote code execution. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-7624 Overview

CVE-2025-7624 is a critical SQL injection vulnerability affecting the legacy (transparent) SMTP proxy component of Sophos Firewall. This vulnerability enables remote code execution on affected systems when specific conditions are met: a quarantining policy must be active for Email, and the Sophos Firewall OS (SFOS) must have been upgraded from a version older than 21.0 GA. The flaw exists in versions older than 21.0 MR2 (21.0.2).

Critical Impact

Unauthenticated remote attackers can exploit this SQL injection vulnerability to achieve full remote code execution on affected Sophos Firewall appliances, potentially compromising the entire network perimeter security.

Affected Products

  • Sophos Firewall Firmware versions older than 21.0 MR2 (21.0.2)
  • Sophos Firewall hardware appliances running vulnerable firmware
  • Systems upgraded from SFOS versions older than 21.0 GA with Email quarantine policies enabled

Discovery Timeline

  • 2025-07-21 - CVE-2025-7624 published to NVD
  • 2025-11-17 - Last updated in NVD database

Technical Details for CVE-2025-7624

Vulnerability Analysis

This vulnerability is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), commonly known as SQL Injection. The flaw resides within the legacy transparent SMTP proxy functionality of Sophos Firewall.

The vulnerability requires a specific configuration state to be exploitable: the firewall must have Email quarantine policies active, and the system must have been upgraded from a firmware version predating 21.0 GA. This upgrade path appears to leave residual legacy code or configuration that contains the vulnerable SQL handling logic.

The transparent SMTP proxy inspects email traffic passing through the firewall, and during this processing, user-controllable input is improperly incorporated into SQL queries without adequate sanitization. This allows an attacker to inject malicious SQL commands that can be leveraged to execute arbitrary code on the underlying system.

Root Cause

The root cause is insufficient input validation and sanitization in the legacy SMTP proxy component. When processing SMTP traffic for quarantine operations, the component constructs SQL queries using untrusted data from email content or SMTP protocol fields. The failure to properly parameterize these queries or escape special characters allows attackers to break out of the intended SQL context and inject arbitrary commands.

This vulnerability specifically affects systems that were upgraded rather than freshly installed, suggesting the legacy code path is only present or active in upgrade scenarios where configuration migration from older versions occurs.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending specially crafted SMTP traffic through a vulnerable Sophos Firewall that has transparent SMTP proxy enabled with quarantine policies.

The attack flow involves:

  1. Identifying a Sophos Firewall with transparent SMTP proxy enabled
  2. Sending malicious email traffic containing SQL injection payloads in SMTP protocol fields or message content
  3. The payload is processed by the quarantine functionality, triggering the SQL injection
  4. Successful injection leads to arbitrary code execution with the privileges of the firewall service

Since no code examples are available from verified sources, administrators should refer to the Sophos Security Advisory SA-20250721 for detailed technical information about the vulnerability mechanism.

Detection Methods for CVE-2025-7624

Indicators of Compromise

  • Unusual SQL error messages or exceptions in SMTP proxy logs
  • Unexpected database queries or modifications related to email quarantine operations
  • Anomalous outbound connections originating from the firewall appliance
  • Suspicious processes spawned by SMTP proxy or database services
  • Evidence of command execution or shell access through mail-related services

Detection Strategies

  • Monitor SMTP traffic for patterns indicative of SQL injection attempts, including single quotes, UNION SELECT statements, and encoded SQL keywords
  • Implement network intrusion detection rules for SQL injection payloads in SMTP traffic
  • Review Sophos Firewall logs for authentication failures, unexpected administrative actions, or system modifications
  • Deploy SentinelOne Singularity to detect post-exploitation behavior and lateral movement attempts from compromised network appliances

Monitoring Recommendations

  • Enable verbose logging on Sophos Firewall SMTP proxy components
  • Configure alerts for any SQL-related errors in firewall logs
  • Monitor for unusual traffic patterns originating from the firewall management interface or internal network segments
  • Implement network segmentation monitoring to detect any unauthorized access attempts from the firewall to internal resources

How to Mitigate CVE-2025-7624

Immediate Actions Required

  • Upgrade Sophos Firewall to version 21.0 MR2 (21.0.2) or later immediately
  • Review and audit Email quarantine policies to determine if the vulnerable configuration exists
  • If unable to patch immediately, consider disabling the transparent SMTP proxy or Email quarantine functionality as a temporary measure
  • Audit firewall logs for any indicators of previous exploitation attempts

Patch Information

Sophos has released version 21.0 MR2 (21.0.2) to address this vulnerability. Administrators should apply this update as soon as possible. Detailed patching instructions and additional guidance are available in the Sophos Security Advisory SA-20250721.

Organizations should prioritize this patch given the critical severity and network-accessible attack vector without authentication requirements.

Workarounds

  • Disable the legacy transparent SMTP proxy if not required for business operations
  • Remove or disable Email quarantine policies until patching can be completed
  • Implement network-level access controls to limit SMTP traffic sources that can reach the firewall's proxy service
  • Consider deploying an additional mail security gateway upstream to filter potentially malicious SMTP traffic before it reaches the Sophos Firewall
bash
# Verify Sophos Firewall firmware version via CLI
system diagnostics show version-info

# Check if Email quarantine policies are active
show email-quarantine status

# After patching, verify the new version
system diagnostics show version-info | grep "Firmware Version"

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 Probability0.19%

  • 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 SA-20250721
  • Related CVEs
  • CVE-2024-12727: Sophos Firewall Firmware SQLI Vulnerability

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

  • CVE-2022-1040: Sophos Firewall Auth Bypass Vulnerability

  • CVE-2022-3236: Sophos Firewall RCE 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