CVE-2025-45346: Bacula web/bacula web SQL Injection Vulnerability
HIGHCVE-2025-45346 is a HIGH (CVSS 8.1) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Bacula web/bacula web libraries in the Packagist ecosystem. The issue involves bacula-web sql injection vulnerability. Remediation is available by upgrading affected packages to version 9.7.1.
CVE-2025-45346 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-45346
To remediate this vulnerability, upgrade all affected Bacula web/bacula web dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade bacula-web/bacula-web to 9.7.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for bacula-web/bacula-web
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-45346, inspect your project dependencies for Bacula web/bacula web:
inspect dependencies for bacula-web/bacula-web
Analyze the terminal output to locate any version of Bacula web/bacula web in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.7.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Bacula web/bacula web, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-45346 Affected Bacula web/bacula web Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bacula-web/bacula-web
|
Packagist |
< 9.7.1
|
9.7.1
|
References
Frequently Asked Questions
What is CVE-2025-45346?
Which Bacula web/bacula web versions are affected?
What version fixes CVE-2025-45346?
Is bacula-web/bacula-web affected?
What is the CVSS score of CVE-2025-45346?
What CWE is associated with CVE-2025-45346?
How can I check Packagist dependencies for CVE-2025-45346?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hq25-vp56-qr86",
"modified" : "2025-07-30T13:21:36Z",
"published" : "2025-07-29T21:30:44Z",
"aliases" : [ "CVE-2025-45346" ],
"summary" : "Bacula-web SQL Injection Vulnerability",
"details" : "SQL Injection vulnerability in Bacula-web before v.9.7.1 allows a remote attacker to execute arbitrary code via a crafted HTTP GET request.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "bacula-web/bacula-web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.7.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-45346"
}, {
"type" : "WEB",
"url" : "https://github.com/bacula-web/bacula-web/commit/ad5d94809f17994a61496ecfec9cd3a16ac14a5f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bacula-web/bacula-web"
}, {
"type" : "WEB",
"url" : "https://github.com/bacula-web/bacula-web/releases/tag/v9.7.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-30T13:21:36Z",
"nvd_published_at" : "2025-07-29T20:15:26Z"
}
}