Skip to main content

PHP PDO Firebird CVE-2025-14179

| EUVDEUVD-2025-209755 HIGH
SQL Injection (CWE-89)
2026-05-10 php
7.4
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify PHP app using PDO Firebird
  2. Delivery
    Inject NUL byte in user input
  3. Exploit
    Trigger PDO::quote() call
  4. Install
    Exploit strncat() termination
  5. C2
    Drop closing quote in SQL
  6. Execute
    Execute injected SQL logic
  7. Impact
    Extract or modify database data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires applications using PHP's PDO Firebird driver extension (not compiled in all PHP distributions by default). Exploitation specifically targets manual query construction using PDO::quote() method to embed attacker-controlled values - applications using prepared statements with bound parameters via PDO::prepare() and execute() are NOT vulnerable as the tokenization flaw occurs during quote() processing. Attacker must inject NUL byte (0x00) into input that reaches PDO::quote(), requiring application to accept binary data or improperly validate input encoding. CVSS vector indicates user interaction required (UI:A), suggesting exploitation may depend on social engineering or specific application workflows that involve user-triggered database operations. Attack timing precision required (AT:P) per CVSS, implying race conditions or state-dependent exploitation scenarios. Limiting factors: PDO Firebird is significantly less deployed than MySQL/PostgreSQL drivers; modern coding practices favor prepared statements; NUL byte injection requires binary-safe input channels.

Impact

Real-world risk is moderate despite CVSS 7.4 rating. The CVSS vector reveals critical mitigating factors: AT:P (attack requires precise timing or additional conditions) and UI:A (user interaction required), suggesting exploitation is non-trivial and context-dependent. The vulnerability requires applications that (1) use the PDO Firebird driver specifically, (2) employ PDO::quote() for manual query construction rather than prepared statements with bound parameters, and (3) allow attacker-controlled input to reach quote() containing NUL bytes. Most modern PHP applications use prepared statements with placeholders, which are not affected by this tokenization flaw. E:P (proof-of-concept exists per CVSS 4.0 vector) indicates demonstrable exploitability, but absence from CISA KEV suggests no widespread or targeted exploitation. RE:M (remediation effort moderate) aligns with straightforward patching across affected versions. Confidence level: Medium (vendor advisory confirms vulnerability and patches; attack prerequisites limit scope). Risk prioritization: High priority for applications using PDO Firebird with manual query construction; low priority for applications using prepared statements or other database backends. The vulnerability class (SQL injection) has high inherent severity, but deployment constraints and coding pattern dependencies significantly reduce population at risk compared to more ubiquitous PHP vulnerabilities.

Exploit ScenarioDerived

An attacker identifies a PHP web application using the PDO Firebird driver that accepts user input and incorporates it into SQL queries via PDO::quote(). The attacker crafts a malicious input string containing a NUL byte (0x00) followed by SQL injection payload, such as "admin\x00' OR '1'='1". When the application calls PDO::quote() on this input and embeds it in a query like "SELECT * FROM users WHERE username = '" . $pdo->quote($username) . "'", the strncat() function stops copying at the NUL byte, dropping the closing quote and allowing the "OR '1'='1" to execute as SQL logic rather than string data. The attacker successfully bypasses authentication, extracts sensitive data, or modifies database records depending on the vulnerable query context.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 10, 2026

SQL injection in PHP's PDO Firebird driver allows remote attackers to manipulate database queries when applications use PDO::quote() with attacker-controlled input containing NUL bytes. The vulnerability affects PHP versions 8.2.* through 8.5.* across all maintained branches, with vendor patches released (8.2.31, 8.3.31, 8.4.21, 8.5.6). CVSS 7.4 with network attack vector but requires user interaction and precise timing conditions (AT:P). Proof-of-concept exploitation status confirmed (E:P), though no active exploitation identified in CISA KEV at time of analysis.

RemediationAI

Upgrade PHP to patched versions: 8.2.31 or later for 8.2 branch, 8.3.31 or later for 8.3 branch, 8.4.21 or later for 8.4 branch, or 8.5.6 or later for 8.5 branch. Patches address the NUL byte handling in PDO Firebird's query tokenizer. For environments where immediate patching is not feasible: (1) Replace manual query construction using PDO::quote() with parameterized prepared statements using PDO::prepare() and bound parameters via execute(), which are not affected by this tokenization vulnerability - side effect is code refactoring requirement; (2) If PDO Firebird is not required by the application, disable or remove the PDO Firebird extension from PHP build/configuration to eliminate attack surface - side effect is potential application breakage if future code relies on Firebird; (3) Implement input validation to reject or strip NUL bytes (0x00) from user input before database operations - less reliable as defense-in-depth since validation logic may be bypassed or incomplete. Primary remediation is upgrading to fixed versions per vendor advisory https://github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm.

Affected VersionsENISA

PHP 8.5.* <8.5.6
PHP 8.2.* <8.2.31
PHP 8.3.* <8.3.31
PHP 8.4.* <8.4.21

Affected Packages

euvd php_8_2 fix: 8.2.31
euvd php_8_3 fix: 8.3.31
euvd php_8_4 fix: 8.4.21
euvd php_8_5 fix: 8.5.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in PHP's PDO (PHP Data Objects) Firebird driver, specifically in the query preparation mechanism. When constructing SQL queries token-by-token, the driver uses strncat() to copy string tokens. This C standard library function terminates copying at the first NUL byte (0x00), creating a premature string termination. If an attacker-controlled value containing a NUL byte is passed through PDO::quote() - a function designed to safely escape values for SQL inclusion - the closing quote is dropped from the concatenated query string. Subsequent SQL tokens are then interpreted as part of the string literal rather than as SQL syntax, effectively breaking out of the quoted context. This is a classic CWE-89 SQL injection variant arising from improper neutralization of special elements, specifically exploiting the semantic gap between PHP's length-aware strings and C's NUL-terminated strings. The PDO Firebird driver is less commonly deployed than MySQL or PostgreSQL drivers, limiting real-world exposure. CPE cpe:2.3:a:php_group:php indicates the core PHP interpreter packages across distributions are affected when PDO Firebird support is compiled in.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (php) PRIMARY 7.4 HIGH
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/AU:Y/RE:M/U:Amber
SUSE 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 8.1 HIGH

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Patch available
May 10, 2026 - 06:01 EUVD
CVSS changed
May 10, 2026 - 05:22 NVD
7.4 (HIGH)
CVE Published
May 10, 2026 - 03:51 nvd
UNKNOWN (no severity yet)
CVE Published
May 10, 2026 - 03:51 nvd
HIGH 7.4

DescriptionCVE.org

In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the PDO Firebird driver improperly handles NUL bytes when preparing SQL queries. During token-by-token query construction, a string token containing a NUL byte is copied via strncat(), which stops at the NUL byte, dropping the closing quote and causing subsequent SQL tokens to be interpreted as part of the string. This allows SQL injection when attacker-controlled values are quoted via PDO::quote() and embedded in SQL statements.

Executive ViewAI

Why It Matters

CVE-2025-14179 is a SQL injection vulnerability in PHP's PDO Firebird driver that allows remote attackers to bypass query protections through crafted input containing NUL bytes, affecting PHP 8.2 through 8.5. Organizations using PHP with Firebird databases are at risk of unauthorized database access and data manipulation. Immediate patching to the vendor-released versions is required to eliminate this attack vector.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible, implement input validation to reject or sanitize any user-supplied data containing NUL bytes (\x00) before reaching PDO::quote(), and restrict Firebird database user permissions to minimum necessary privileges.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Social Media
3
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Server 16.0 SUSE Linux Enterprise Server for SAP applications 16.0 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy