{"id":59672,"date":"2025-07-27T03:28:06","date_gmt":"2025-07-27T03:28:06","guid":{"rendered":""},"modified":"2025-10-03T23:55:37","modified_gmt":"2025-10-04T05:55:37","slug":"cve-2025-7624-critical-sql-injection-vulnerability-in-sophos-firewall-s-legacy-smtp-proxy","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-7624-critical-sql-injection-vulnerability-in-sophos-firewall-s-legacy-smtp-proxy\/","title":{"rendered":"<strong>CVE-2025-7624: Critical SQL Injection Vulnerability in Sophos Firewall&#8217;s Legacy SMTP Proxy<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>In the ongoing struggle to keep our digital environments secure, cybersecurity professionals continually discover new vulnerabilities that can potentially compromise system security. One such vulnerability, recently marked as CVE-2025-7624, affects the legacy SMTP proxy of Sophos Firewall versions older than 21.0 MR2 (21.0.2). The <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49416-critical-php-remote-file-inclusion-vulnerability-in-fastw3b-llc-fw-gallery\/\"  data-wpil-monitor-id=\"66099\">vulnerability is particularly severe as it can lead to remote<\/a> code execution if a quarantining policy is active for Email and SFOS was upgraded from a version older than 21.0 GA.<br \/>\nThis vulnerability is a grave concern for any organization using the affected <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-46198-cross-site-scripting-vulnerability-in-grav-versions-1-7-46-to-1-7-48\/\"  data-wpil-monitor-id=\"69873\">Sophos<\/a> Firewall versions, as it poses a significant risk of system compromise or data leakage. It is of utmost importance to understand this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7027-critical-firmware-vulnerability-enabling-arbitrary-memory-writes-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"69875\">vulnerability and take the necessary steps to mitigate its potential<\/a> impact.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-7624<br \/>\nSeverity: Critical (9.8 CVSS Score)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: None<br \/>\nUser Interaction: None<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-21432-memory-corruption-vulnerability-resulting-in-potential-system-compromise-or-data-leakage\/\"  data-wpil-monitor-id=\"75904\">System compromise or data<\/a> leakage upon successful exploitation<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-2423596901\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p>Sophos Firewall | Versions older than 21.0 MR2 (21.0.2)<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The exploit takes advantage of an SQL <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54451-code-injection-vulnerability-in-samsung-electronics-magicinfo-9-server\/\"  data-wpil-monitor-id=\"67566\">injection vulnerability<\/a> in the legacy SMTP proxy of the affected Sophos Firewall versions. An attacker could craft a malicious SQL query to trick the system into <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54416-arbitrary-command-execution-vulnerability-in-tj-actions-branch-names-github-action\/\"  data-wpil-monitor-id=\"69874\">executing arbitrary SQL commands<\/a>. When successful, this could lead to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-26074-remote-code-execution-vulnerability-in-orkes-conductor-v3-21-11\/\"  data-wpil-monitor-id=\"66100\">remote code execution<\/a>, potentially giving the attacker full control over the compromised system. This is particularly dangerous if a quarantining policy is active for Email and SFOS was upgraded from a version older than 21.0 GA.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2606214973\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>Here is a conceptual example of how the vulnerability might be exploited. This is a sample <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-8243-critical-buffer-overflow-vulnerability-in-totolink-x15-http-post-request-handler\/\"  data-wpil-monitor-id=\"67567\">HTTP request<\/a>, demonstrating how an attacker could inject malicious SQL commands into the system.<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/smtp_proxy\/endpoint HTTP\/1.1\nHost: target.example.com\nContent-Type: application\/json\n{ &quot;email&quot;: &quot;admin&#039;; DROP TABLE users; --&quot; }<\/code><\/pre>\n<p>In this example, the attacker is attempting to trick the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-41530-critical-sql-injection-vulnerability-in-hospital-management-system-v4\/\"  data-wpil-monitor-id=\"75903\">system into executing the SQL<\/a> command `DROP TABLE users;` after the legitimate command `admin`. If successful, this would <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-42916-high-impact-database-table-deletion-vulnerability\/\"  data-wpil-monitor-id=\"88677\">delete the entire &#8216;users&#8217; database table<\/a>, potentially causing significant damage.<\/p>\n<p><strong>Mitigation Guidance<\/strong><\/p>\n<p>Users are advised to apply the vendor patch as soon as possible to mitigate the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-25178-critical-luajit-vulnerability-puts-systems-at-risk-of-compromise\/\"  data-wpil-monitor-id=\"70584\">risk of this vulnerability<\/a>. If this is not immediately possible, users can use a Web Application Firewall (WAF) or Intrusion Detection System (IDS) as a temporary mitigation measure, which can help monitor and block <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-45346-sql-injection-vulnerability-in-bacula-web-resulting-in-potential-system-compromise\/\"  data-wpil-monitor-id=\"67865\">potential SQL injection<\/a> attempts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview In the ongoing struggle to keep our digital environments secure, cybersecurity professionals continually discover new vulnerabilities that can potentially compromise system security. One such vulnerability, recently marked as CVE-2025-7624, affects the legacy SMTP proxy of Sophos Firewall versions older than 21.0 MR2 (21.0.2). The vulnerability is particularly severe as it can lead to remote [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[],"product":[],"attack_vector":[80,74],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-59672","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-rce","attack_vector-sql-injection"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=59672"}],"version-history":[{"count":7,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59672\/revisions"}],"predecessor-version":[{"id":81492,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59672\/revisions\/81492"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=59672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=59672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=59672"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=59672"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=59672"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=59672"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=59672"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=59672"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=59672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}