CVE-2025-14179
SQL injection via NUL bytes in quoted strings
Severity: High CVSS 7.4. Status in our packages: Fixed.
About CVE-2025-14179
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.
Description quoted from the CVE record at cve.org.
| Published | 2026-05-10 |
|---|---|
| Weakness | CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') |
| CVSS | High 7.4 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 (scored by the CVE numbering authority) |
| Affected upstream | PHP 8.2.* before 8.2.31; PHP 8.3.* before 8.3.31; PHP 8.4.* before 8.4.21; PHP 8.5.* before 8.5.6 |
Status in GetPageSpeed packages
| Product | Status | Fixed in | Details |
|---|---|---|---|
| PHP 8.0 on Ubuntu 20.04 | Fixed | 1:8.0.30-25+gps1 | Everpatch PHP 8.0 |
| PHP 8.1 on Ubuntu 20.04 | Fixed | 8.1.34-9+gps1 | Everpatch PHP 8.1 |
| PHP 8.2 on Ubuntu 20.04 | Fixed | 8.2.35-1+gps1 | Everpatch PHP 8.2 |
Check a server for CVE-2025-14179
Everpatch PHP on Debian and Ubuntu: PHP 8.0 on Ubuntu 20.04 1:8.0.30-25+gps1, PHP 8.1 on Ubuntu 20.04 8.1.34-9+gps1, PHP 8.2 on Ubuntu 20.04 8.2.35-1+gps1 or later. The Debian changelog names every CVE a build fixes.
dpkg-query -W 'php*-common'
zgrep -F CVE-2025-14179 /usr/share/doc/php*-common/changelog.Debian.gzAfter a PHP update, restart PHP-FPM (and Apache httpd if it runs mod_php): the old processes keep the vulnerable code until then.
Fixed in the same build
- CVE-2026-6103: Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection
- CVE-2025-14181: Integer overflow to buffer overflow in soap HTTP parsing
- CVE-2025-14180: PDO quoting result null deref
- CVE-2025-14178: Heap buffer overflow in array_merge()
- CVE-2025-14177: Information Leak of Memory in getimagesize
- CVE-2025-6491: NULL Pointer Dereference in PHP SOAP Extension via Large XML Namespace Prefix
Scanner feeds (OVAL, CSAF, OpenVEX), fix-time targets and answers to common questions: the CVE tracker.