Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-45346

CVE-2025-45346: Bacula Bacula-web SQLi Vulnerability

CVE-2025-45346 is a SQL injection vulnerability in Bacula Bacula-web that enables remote attackers to execute arbitrary code via crafted HTTP GET requests. This article covers technical details, affected versions, and mitigation.

Published: April 29, 2026

CVE-2025-45346 Overview

CVE-2025-45346 is a SQL Injection vulnerability affecting Bacula-web, a popular open-source web-based reporting and monitoring tool for the Bacula backup system. This vulnerability exists in versions prior to v9.7.1 and allows a remote attacker to execute arbitrary code via a crafted HTTP GET request. The flaw stems from improper sanitization of user-supplied input in the job files report functionality, enabling attackers to inject malicious SQL statements.

Critical Impact

Remote attackers can exploit this SQL Injection vulnerability to execute arbitrary code, potentially compromising the confidentiality, integrity, and availability of systems running vulnerable Bacula-web installations without requiring authentication or user interaction.

Affected Products

  • Bacula-web versions prior to v9.7.1
  • bacula:bacula-web (all versions before the security patch)

Discovery Timeline

  • 2025-07-29 - CVE-2025-45346 published to NVD
  • 2025-08-06 - Last updated in NVD database

Technical Details for CVE-2025-45346

Vulnerability Analysis

This SQL Injection vulnerability exists in the job files report functionality of Bacula-web. The application fails to properly sanitize user-controlled input before incorporating it into SQL queries. Specifically, the filename parameter is directly concatenated into SQL WHERE clauses without parameterization, allowing attackers to manipulate database queries through specially crafted HTTP GET requests.

The vulnerability requires network access and while the attack complexity is high, successful exploitation does not require privileges or user interaction. An attacker who successfully exploits this vulnerability could read, modify, or delete sensitive data from the Bacula backup database, potentially gaining access to backup metadata, job histories, and system configuration information.

Root Cause

The root cause of this vulnerability is the use of direct string concatenation for constructing SQL queries with user-supplied input. In the vulnerable code within application/Table/JobFileTable.php, the $filename variable is directly embedded into the SQL WHERE clause using string interpolation rather than parameterized queries. This classic SQL Injection pattern allows attackers to break out of the intended query structure and inject arbitrary SQL commands.

Attack Vector

The attack is conducted over the network via HTTP GET requests to the Bacula-web application. An attacker crafts a malicious request containing SQL injection payloads in the filename parameter. When the application processes this request for the job files report, the unsanitized input is incorporated directly into the SQL query, allowing the attacker to:

  1. Extract sensitive data from the database using UNION-based or error-based injection techniques
  2. Modify or delete database records
  3. Potentially execute arbitrary code depending on database privileges and configuration

The vulnerability can be exploited remotely without authentication, making internet-facing Bacula-web installations particularly at risk.

php
// Vulnerable code (before patch) in application/Table/JobFileTable.php
// User input directly concatenated into SQL query

$fields = array('Job.Name', 'Job.JobStatus', 'File.FileIndex', 'Path.Path', 'Filename.Name AS Filename');
$where = array("File.JobId = $jobId");
if (! empty($filename)) {
    // VULNERABLE: Direct string interpolation allows SQL injection
    $where[] = "(Filename.Name LIKE '%$filename%' OR Path.Path LIKE '%$filename%' OR concat(Path.Path, '', Filename.Name) = '$filename')";
}

// Fixed code (after patch) - uses parameterized queries
$fields = array('Job.Name', 'Job.JobStatus', 'File.FileIndex', 'Path.Path', 'Filename.Name AS Filename');
$where = array("File.JobId = $jobId");
if (! empty($filename)) {
    // SECURE: Uses named parameters to prevent SQL injection
    $this->addParameter('filename', '%'.$filename.'%');
    $where[] = "(Filename.Name LIKE :filename OR Path.Path LIKE :filename OR concat(Path.Path, '', Filename.Name) = :filename)";
}

Source: GitHub Commit ad5d948

Detection Methods for CVE-2025-45346

Indicators of Compromise

  • Unusual HTTP GET requests to Bacula-web containing SQL metacharacters (single quotes, double dashes, UNION keywords) in query parameters
  • Database error messages appearing in application logs indicating malformed SQL syntax
  • Unexpected database queries or access patterns in database audit logs
  • Evidence of data exfiltration or unauthorized database modifications in backup job metadata

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block common SQL injection patterns in HTTP requests
  • Monitor web server access logs for suspicious requests containing SQL keywords and special characters targeting Bacula-web endpoints
  • Enable database query logging and alert on anomalous query patterns or syntax errors
  • Deploy intrusion detection systems (IDS) with signatures for SQL injection attack payloads

Monitoring Recommendations

  • Configure centralized logging for all Bacula-web HTTP traffic and database interactions
  • Set up alerts for repeated failed database queries or syntax errors that may indicate injection attempts
  • Monitor for unusual data access patterns in the Bacula database, particularly to sensitive backup metadata
  • Implement network traffic analysis to detect potential data exfiltration following a successful attack

How to Mitigate CVE-2025-45346

Immediate Actions Required

  • Upgrade Bacula-web to version 9.7.1 or later immediately to apply the security patch
  • If immediate upgrade is not possible, restrict network access to Bacula-web using firewall rules to allow only trusted IP addresses
  • Implement a Web Application Firewall (WAF) with SQL injection protection as an additional defense layer
  • Review database access logs for any signs of prior exploitation attempts

Patch Information

The Bacula-web development team has released version 9.7.1 which addresses this SQL Injection vulnerability. The fix implements parameterized queries using named parameters (:filename) instead of direct string concatenation, preventing SQL injection attacks. Users should upgrade to this version as soon as possible.

For detailed patch information, refer to the GitHub Commit ad5d948 and the GitHub Release v9.7.1.

Workarounds

  • Restrict access to Bacula-web by placing it behind a VPN or requiring authentication at the web server level
  • Configure network firewalls to limit access to the Bacula-web interface to trusted internal networks only
  • Deploy a reverse proxy with WAF capabilities configured to block SQL injection patterns
  • Consider temporarily disabling the job files report functionality if feasible until the patch can be applied
bash
# Example: Restrict Bacula-web access using iptables
# Allow only trusted IP addresses to access Bacula-web (adjust ports as needed)
iptables -A INPUT -p tcp --dport 80 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -p tcp --dport 443 -j DROP

# Example: Apache configuration to restrict access
# Add to Bacula-web virtual host configuration
<Directory /var/www/bacula-web>
    Require ip 10.0.0.0/8 192.168.0.0/16
</Directory>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechBacula

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.26%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Release v9.7.1
  • Vendor Resources
  • GitHub Commit Update
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | 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