CVE-2025-14179
SQL injection in pdo_firebird via NUL bytes in quoted strings
Reported by php · Published May 10, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php-8.2 | Wolfi | 8.2.31-r0 |
| libphp | Bitnami | 8.5.6, 8.4.21, 8.3.31, 8.2.31 |
| php-8.2 | Chainguard | 8.2.31-r0 |
| php | Bitnami | 8.5.6, 8.4.21, 8.3.31, 8.2.31 |
| php-min | Bitnami | 8.5.6, 8.4.21, 8.3.31, 8.2.31 |
| php | php | 8.5.6, 8.4.21, 8.3.31, 8.2.31 |
| pdo_firebird | PHP Group | 8.5.6, 8.4.21, 8.3.31, 8.2.31 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.2.*, 8.3.*, 8.4.* |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Hardened Images | |
| PHP Group | PHP | 8.2.*, 8.4.*, 8.5.* |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 10 |
Timeline
- May 7, 2026 CVE Published
- May 8, 2026 PoC Published (9 in total, the first dated here)
- May 11, 2026 Security Advisory (13 in total, the first dated here)
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Aug 10, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (10 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-14179
vulnetix vdb fixes CVE-2025-14179
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-14179/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart