Skip to main content

CVE tracker

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.

Published2026-05-10
WeaknessCWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVSSHigh 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 upstreamPHP 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

ProductStatusFixed inDetails
PHP 8.0 on Ubuntu 20.04Fixed1:8.0.30-25+gps1Everpatch PHP 8.0
PHP 8.1 on Ubuntu 20.04Fixed8.1.34-9+gps1Everpatch PHP 8.1
PHP 8.2 on Ubuntu 20.04Fixed8.2.35-1+gps1Everpatch 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.gz

After 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

Scanner feeds (OVAL, CSAF, OpenVEX), fix-time targets and answers to common questions: the CVE tracker.