CVE Wiki Pixee · CVE intelligence
← All CVEs

CVE-2025-14179

Critical · CVSS 9.8

PHP PDO Firebird driver — SQL Injection via NUL byte handling in PDO Firebird driver (CWE-89)

CVSS
9.8
nvd
EPSS
KEV
No
Class
other
CWE-89, CWE-89

Description

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.

Search profile — drives PoC discovery

Symbols PDO::quotestrncatpdo_firebirdibase_queryPDO Firebirdfirebird_drivertoken-by-token query constructionNUL byteclosing quotephp-src
Keywords CVE-2025-14179PHP PDO Firebird SQL injectionNUL byte SQL injection PHPPDO quote NUL byte bypassphp-src Firebird driver strncatGHSA-w476-322c-wpvmPHP 8.2 8.3 8.4 PDO Firebirdpdo_firebird SQL injection PoCPHP Firebird driver null byte injection
Versions: 8.2.* < 8.2.31, 8.3.* < 8.3.31, 8.4.* < 8.4.21, 8.5.* < 8.5.6

References

Status: enriched · ingested 2026-06-30T06:00:22.000Z · profiled 2026-06-30T18:10:12.581Z