The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-14179

CVE-2025-14179: PHP PDO Firebird SQLi Vulnerability

CVE-2025-14179 is a SQL injection flaw in PHP's PDO Firebird driver affecting versions 8.2-8.5. Improper NUL byte handling allows attackers to bypass quote protection. This article covers technical details, impact, and patches.

Published: May 18, 2026

CVE-2025-14179 Overview

CVE-2025-14179 is a SQL injection vulnerability in the PHP PDO Firebird driver. The flaw stems from improper handling of NUL bytes during token-by-token query construction in prepared statements. The driver copies string tokens using strncat(), which terminates at the first NUL byte and drops the closing quote. Subsequent SQL tokens are then interpreted as part of the string literal, enabling SQL injection when attacker-controlled values pass through PDO::quote(). The vulnerability is tracked under [CWE-89] and affects PHP versions 8.2.x, 8.3.x, 8.4.x, and 8.5.x prior to their respective patched releases.

Critical Impact

Attackers can bypass PDO::quote() sanitization and inject arbitrary SQL statements against Firebird databases when applications include NUL bytes in user-supplied input.

Affected Products

  • PHP 8.2.x before 8.2.31
  • PHP 8.3.x before 8.3.31
  • PHP 8.4.x before 8.4.21 and 8.5.x before 8.5.6

Discovery Timeline

  • 2026-05-10 - CVE-2025-14179 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2025-14179

Vulnerability Analysis

The PDO Firebird driver constructs SQL statements by walking through tokens and concatenating them into a destination buffer. The implementation uses strncat() to append quoted string literals to the working query buffer. Because strncat() is a C string function, it stops copying at the first NUL byte it encounters in the source. When an attacker supplies a value containing an embedded NUL byte, the closing quote character placed by PDO::quote() never reaches the destination buffer. The driver then proceeds to append additional tokens, which the database parses as continuation of the unterminated string literal or as new SQL syntax.

Root Cause

The root cause is a mismatch between PHP's binary-safe string handling and the use of C-style NUL-terminated string operations during query assembly. PDO::quote() correctly escapes embedded quotes and applies surrounding delimiters, but the downstream concatenation in the Firebird driver truncates the quoted token. This breaks the trust boundary that PDO::quote() is expected to enforce, leaving applications vulnerable even when they follow recommended escaping practices.

Attack Vector

Exploitation requires the application to embed quoted attacker-controlled input into a SQL statement executed through the PDO Firebird driver. The attacker submits input containing a NUL byte (\\x00) followed by SQL syntax intended to be appended after the broken string token. When the truncated quoted value is concatenated with subsequent SQL fragments, the injected payload executes against the Firebird database. The vulnerability requires user interaction with an affected application but no authentication to PHP itself.

No verified public exploit code is available at this time. See the PHP Security Advisory GHSA-w476-322c-wpvm for upstream technical details.

Detection Methods for CVE-2025-14179

Indicators of Compromise

  • Web server access logs containing URL-encoded NUL bytes (%00) in request parameters that reach PDO Firebird query paths.
  • Database audit logs showing unexpected SQL statements originating from application accounts, particularly statements that appear truncated or contain unbalanced quotes.
  • Application error logs referencing Firebird syntax errors immediately following requests with binary input.

Detection Strategies

  • Inspect HTTP request payloads for embedded NUL bytes in fields destined for database queries, including JSON, form parameters, and headers.
  • Enable Firebird database query logging and alert on statements containing unusual control characters or unexpected statement chaining.
  • Run static analysis on PHP code to identify call sites that pass user input through PDO::quote() to a Firebird DSN, and review them for binary-safety assumptions.

Monitoring Recommendations

  • Monitor for PHP processes loading the pdo_firebird extension and inventory applications that depend on it.
  • Correlate web application firewall events for NUL byte payloads with downstream database activity from the same session.
  • Track installed PHP runtime versions across the environment and flag hosts running unpatched 8.2, 8.3, 8.4, or 8.5 builds.

How to Mitigate CVE-2025-14179

Immediate Actions Required

  • Upgrade PHP to 8.2.31, 8.3.31, 8.4.21, or 8.5.6 or later, depending on the deployed branch.
  • Audit all application code that uses PDO::quote() with the Firebird driver and add explicit rejection of input containing NUL bytes.
  • Restrict database account privileges used by PHP applications so that successful injection does not grant administrative access to Firebird.

Patch Information

The PHP project published fixes in the upstream php-src repository and documented them in the PHP Security Advisory GHSA-w476-322c-wpvm. Apply the vendor patch by upgrading to the fixed minor release on the matching branch.

Workarounds

  • Replace PDO::quote() plus string interpolation with parameterized prepared statements using bindValue() or bindParam(), which avoid the vulnerable concatenation path.
  • Strip or reject NUL bytes (\\x00) from all user input at the application boundary before it reaches database code.
  • If upgrading is not immediately feasible, migrate affected workloads off the PDO Firebird driver to a different database connector until the patched PHP version is deployed.
bash
# Verify the installed PHP version on the host
php -v

# Example input filter to reject NUL bytes before query construction
# (apply in application code, not as a substitute for patching)
if (strpos($input, "\0") !== false) {
    throw new InvalidArgumentException('NUL byte in input');
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechPhp

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:X/V:X/RE:M/U:Amber
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-29861: PHP-MYSQL User Login System SQLi Flaw

  • CVE-2025-45065: Employee Record Management System SQLi

  • CVE-2026-6722: PHP SOAP Extension RCE Vulnerability

  • CVE-2026-6735: PHP PHP-FPM 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