CVE-2025-14179 — Technical Security Advisory & CVSS Profile
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.
Technical Metadata
| Identifier | CVE-2025-14179 |
|---|---|
| Base Severity / Score | CRITICAL (9.8 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Weakness Classification | CWE-89 |
| Archive Categories | CRITICAL Advisories · 2026 Index |
Operational Mitigation Guidance
Immediate patching or compensating network isolation is strongly advised. Audit perimeter exposure, apply vendor security updates immediately, and restrict service privileges using least-privilege namespaces. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- https://github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm
- https://access.redhat.com/security/cve/CVE-2025-14179
- https://bugzilla.redhat.com/show_bug.cgi?id=2468567