CVE-2025-7624 SQL injection in Sophos Firewall
Remote attackers can achieve code execution via SQL injection in the SMTP proxy if specific upgrade and policy conditions are met.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-7624?
CVE-2025-7624 is a critical SQL injection vulnerability in Sophos Firewall, published on 21 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An SQL injection vulnerability in the legacy (transparent) SMTP proxy of Sophos Firewall versions older than 21.0 MR2 (21.0.2) can lead to remote code execution, if a quarantining policy is active for Email and SFOS was upgraded from a version older than 21.0 GA.
Weakness: CWE-89
Which versions are affected by CVE-2025-7624?
It affects 1 product.
Products include Sophos Firewall Firmware.
How do I fix CVE-2025-7624?
No fix has been published for CVE-2025-7624 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-7624 being exploited?
There is no known exploitation of CVE-2025-7624 in the wild and no public exploit code.
Other vulnerabilities in Sophos Firewall
Sources
Also known as GHSA-rjpf-qp74-8rgx.