Vulnerability · Published May 10, 2026 · Assigned by php
CVE-2025-14179SQL injection in pdo_firebird via NUL bytes in quoted strings
High 8.1
In plain English
A high-severity SQL injection in PHP from PHP Group. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | php8.2 | 8.2.31-1~deb12u1 | DEBIAN-CVE-2025-14179 |
| Debian:13 | php8.4 | 8.4.21-1~deb13u1 | DEBIAN-CVE-2025-14179 |
| Debian:14 | php8.4 | 8.4.21-1 | DEBIAN-CVE-2025-14179 |
| Ubuntu:22.04:LTS | php8.1 | 8.1.2-1ubuntu2.24 | UBUNTU-CVE-2025-14179 |
| Ubuntu:24.04:LTS | php8.3 | 8.3.6-0ubuntu0.24.04.9 | UBUNTU-CVE-2025-14179 |
| Ubuntu:25.10 | php8.4 | 8.4.11-1ubuntu1.2 | UBUNTU-CVE-2025-14179 |
| Ubuntu:26.04:LTS | php8.5 | 8.5.4-0ubuntu1.1 | UBUNTU-CVE-2025-14179 |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-14179 vdb-entry, x_refsource_REDHAT
- RHBZ#2468567 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14179.json x_sadp-csaf-vex