CVE-2025-14179SQL injection in pdo_firebird via NUL bytes in quoted strings
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | php8.5 | Fixed | 8.5.4-0ubuntu1.1 | UBUNTU-CVE-2025-14179 |
| Ubuntu 25.10 | php8.4 | Fixed | 8.4.11-1ubuntu1.2 | UBUNTU-CVE-2025-14179 |
| Ubuntu 24.04 | php8.3 | Fixed | 8.3.6-0ubuntu0.24.04.9 | UBUNTU-CVE-2025-14179 |
| Ubuntu 22.04 | php8.1 | Fixed | 8.1.2-1ubuntu2.24 | UBUNTU-CVE-2025-14179 |
| Ubuntu 20.04 | php7.4 | Fix pending | UBUNTU-CVE-2025-14179 | |
| Ubuntu 18.04 | php7.2 | Fix pending | UBUNTU-CVE-2025-14179 | |
| Ubuntu 16.04 | php7.0 | Fix pending | 7.0.33-0ubuntu0.16.04.16+esm19 (Ubuntu Pro) | UBUNTU-CVE-2025-14179 |
| Debian 14 | php8.4 | Fixed | 8.4.21-1 | DEBIAN-CVE-2025-14179 |
| Debian 13 | php8.4 | Fixed | 8.4.21-1~deb13u1 | DEBIAN-CVE-2025-14179 |
| Debian 12 | php8.2 | Fixed | 8.2.31-1~deb12u1 | DEBIAN-CVE-2025-14179 |
| Red Hat Enterprise Linux 10 | php | Not affected | ||
| Red Hat Enterprise Linux 10 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 10 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | php-common | Not affected | ||
| Red Hat Enterprise Linux 10 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 10 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 10 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 10 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 10 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 10 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 10 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 10 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 10 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 10 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 10 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 10 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 10 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 10 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 10 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 10 | php-process | Not affected | ||
| Red Hat Enterprise Linux 10 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 10 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4 | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-bcmath | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-common | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-dba | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-dbg | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-embedded | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-enchant | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-ffi | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-fpm | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-gd | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-gmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-intl | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-ldap | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-mbstring | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-odbc | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-opcache | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-pdo | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-pgsql | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-process | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-soap | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-xml | Not affected | ||
| Red Hat Enterprise Linux 9 | php | Not affected | ||
| Red Hat Enterprise Linux 9 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 9 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 9 | php-common | Not affected | ||
| Red Hat Enterprise Linux 9 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 9 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 9 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 9 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 9 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 9 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 9 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 9 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 9 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 9 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 9 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 9 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 9 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 9 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 9 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 9 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 9 | php-process | Not affected | ||
| Red Hat Enterprise Linux 9 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 9 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 8 | apcu-panel | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | php | Not affected | ||
| Red Hat Enterprise Linux 8 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 8 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 8 | php-common | Not affected | ||
| Red Hat Enterprise Linux 8 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 8 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 8 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 8 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 8 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 8 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 8 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 8 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 8 | php-json | Not affected | ||
| Red Hat Enterprise Linux 8 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 8 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 8 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pear | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-apcu | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-apcu-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-rrd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-xdebug | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-xdebug3 | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-zip | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 8 | php-process | Not affected | ||
| Red Hat Enterprise Linux 8 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 8 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 8 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 8 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 7 | php | Not affected | ||
| Red Hat Enterprise Linux 7 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 7 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 7 | php-common | Not affected | ||
| Red Hat Enterprise Linux 7 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 7 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 7 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 7 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 7 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 7 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-process | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 7 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 7 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 7 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php | Not affected | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 6 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 6 | php-common | Not affected | ||
| Red Hat Enterprise Linux 6 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 6 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 6 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 6 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 6 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 6 | php-imap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 6 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-process | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 6 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 6 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 6 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-tidy | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-zts | Not affected |
What the vendor says
As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PHP Group PHP: affected: 8.2.* to before 8.2.31, 8.3.* to before 8.3.31, 8.4.* to before 8.4.21, 8.5.* to before 8.5.6; fixed in
8.2.31,8.3.31,8.4.21,8.5.6
Vendor advisories:
- https://github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.