{"id":59881,"date":"2025-08-04T21:54:14","date_gmt":"2025-08-04T21:54:14","guid":{"rendered":""},"modified":"2025-08-29T22:43:42","modified_gmt":"2025-08-30T04:43:42","slug":"cve-2025-45346-sql-injection-vulnerability-in-bacula-web-resulting-in-potential-system-compromise","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-45346-sql-injection-vulnerability-in-bacula-web-resulting-in-potential-system-compromise\/","title":{"rendered":"<strong>CVE-2025-45346: SQL Injection Vulnerability in Bacula-web Resulting in Potential System Compromise<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>As the digital realm continues to evolve, it has become increasingly important to safeguard our systems against potential cyber threats. One such threat, recently identified as CVE-2025-45346, poses a serious risk to businesses using Bacula-web versions prior to 9.7.1. This vulnerability is classed as an <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-26074-remote-code-execution-vulnerability-in-orkes-conductor-v3-21-11\/\"  data-wpil-monitor-id=\"66022\">SQL Injection<\/a> flaw that allows remote attackers to execute arbitrary code through a specifically crafted HTTP GET request. The implications of this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-50067-critical-vulnerability-in-oracle-application-express-allowing-system-takeover\/\"  data-wpil-monitor-id=\"67250\">vulnerability are severe and could potentially lead to complete system<\/a> compromise and data leakage if left unaddressed.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-45346<br \/>\nSeverity: High (8.1 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-7419-critical-vulnerability-discovered-in-tenda-o3v2-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"68703\">System compromise and potential<\/a> data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-1954553875\" 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>Bacula-web | Before 9.7.1<\/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=\"67559\">injection vulnerability<\/a> within Bacula-web\u2019s HTTP GET query parameters. Using this vulnerability, a remote attacker could craft a malicious HTTP GET request that <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7097-critical-command-injection-vulnerability-in-comodo-internet-security-premium\/\"  data-wpil-monitor-id=\"68235\">injects SQL commands<\/a> into the application&#8217;s database query. This could potentially give the attacker the ability to execute arbitrary SQL queries on the database, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-41668-critical-file-replacement-leading-to-unauthorized-access\/\"  data-wpil-monitor-id=\"67251\">leading to unauthorized<\/a> viewing, modification, or deletion of data.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-1333734153\" 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>A conceptual representation of how the vulnerability might be exploited could look like this:<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/vulnerable\/endpoint?param=value&#039; OR &#039;1&#039;=&#039;1&#039;; -- HTTP\/1.1\nHost: target.example.com<\/code><\/pre>\n<p>In the above example, the attacker manipulates the &#8216;param&#8217; parameter value in the HTTP GET request to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54444-unrestricted-file-upload-leading-to-code-injection-in-samsung-electronics-magicinfo-9-server\/\"  data-wpil-monitor-id=\"67249\">inject the SQL code<\/a> `&#8217; OR &#8216;1&#8217;=&#8217;1&#8242;; &#8211;`. This SQL command will always evaluate to true, potentially <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-50105-critical-vulnerability-in-oracle-universal-work-queue-allowing-unauthorized-data-access\/\"  data-wpil-monitor-id=\"68704\">allowing the attacker to bypass authentication or retrieve sensitive data<\/a>.<\/p>\n<p><strong>Mitigation<\/strong><\/p>\n<p>The best way to mitigate this vulnerability is to apply the vendor patch. Bacula-web has released a patch in <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=\"69863\">version 9.7.1 that addresses this vulnerability<\/a>. If for some reason it is not possible to update to the latest version, implementing a Web Application Firewall (WAF) or Intrusion Detection System (IDS) could serve as a temporary solution. This should be coupled with sanitization of all user inputs, use of prepared statements for SQL queries, and least <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-44655-unauthorized-access-and-privilege-escalation-in-totolink-routers\/\"  data-wpil-monitor-id=\"73288\">privilege principles for database access<\/a> rights.<br \/>\nRemember, the digital landscape is constantly changing and so are the threats that come with it. Stay vigilant and keep your <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-27050-memory-corruption-vulnerability-leading-to-potential-system-compromise-and-data-leakage\/\"  data-wpil-monitor-id=\"74755\">systems updated to protect your data<\/a> and maintain the integrity of your systems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview As the digital realm continues to evolve, it has become increasingly important to safeguard our systems against potential cyber threats. One such threat, recently identified as CVE-2025-45346, poses a serious risk to businesses using Bacula-web versions prior to 9.7.1. This vulnerability is classed as an SQL Injection flaw that allows remote attackers to execute [&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":[75,74],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-59881","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-authentication-bypass","attack_vector-sql-injection"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59881","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=59881"}],"version-history":[{"count":8,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59881\/revisions"}],"predecessor-version":[{"id":67421,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/59881\/revisions\/67421"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=59881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=59881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=59881"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=59881"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=59881"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=59881"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=59881"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=59881"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=59881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}