Vulnerabilities / CVE-2025-14179

critical

CVE-2025-14179

php: SQL injection in pdo_firebird via NUL bytes in quoted strings

Published Modified CWE 89
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by Red Hat (high), Azure Linux (high), Ubuntu (medium).

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 and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databaselibphp, php, php-min8.2.31, 8.3.31, 8.4.21, 8.5.6
Azure Linux 3.0php0:8.3.31-1.azl3
chainguardphp-8.28.2.31-r0
debian 12php8.28.2.31-1~deb12u1
debian 13php8.48.4.21-1~deb13u1
debian 14php8.48.4.21-1
echophp-7.2, php-8.1, php8.2 and 1 more7.2.34+e1 and 3 more
minimosphp-8.2, php-8.3, php-8.4 and 1 more8.2.31-r0 and 3 more
rapidfort alma 10php, php-bcmath, php-cli and 22 moreno fix listed
rapidfort debian 12php8.20:8.2.31-1~deb12u1
rapidfort debian 13php8.20:8.2.31-1~deb12u1
rapidfort fedora 43php, php-bcmath, php-cli and 26 more8.4.21-1.fc43
Show all 161 entries from 23 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databaselibphp8.2.31, 8.3.31, 8.4.21, 8.5.6
bitnami::Bitnami Vulnerability Databasephp8.2.31, 8.3.31, 8.4.21, 8.5.6
bitnami::Bitnami Vulnerability Databasephp-min8.2.31, 8.3.31, 8.4.21, 8.5.6
Azure Linux 3.0php0:8.3.31-1.azl3
chainguardphp-8.28.2.31-r0
debian 12php8.28.2.31-1~deb12u1
debian 13php8.48.4.21-1~deb13u1
debian 14php8.48.4.21-1
echophp-7.27.2.34+e1
echophp-8.18.1.34+e1
echophp8.28.2.31-1~deb12u1
echophp8.48.4.21-1~deb13u1
minimosphp-8.28.2.31-r0
minimosphp-8.38.3.31-r0
minimosphp-8.48.4.21-r0
minimosphp-8.58.5.6-r0
rapidfort alma 10phpno fix listed
rapidfort alma 10php-bcmathno fix listed
rapidfort alma 10php-clino fix listed
rapidfort alma 10php-commonno fix listed
rapidfort alma 10php-dbano fix listed
rapidfort alma 10php-dbgno fix listed
rapidfort alma 10php-develno fix listed
rapidfort alma 10php-embeddedno fix listed
rapidfort alma 10php-enchantno fix listed
rapidfort alma 10php-ffino fix listed
rapidfort alma 10php-fpmno fix listed
rapidfort alma 10php-gdno fix listed
rapidfort alma 10php-gmpno fix listed
rapidfort alma 10php-intlno fix listed
rapidfort alma 10php-ldapno fix listed
rapidfort alma 10php-mbstringno fix listed
rapidfort alma 10php-mysqlndno fix listed
rapidfort alma 10php-odbcno fix listed
rapidfort alma 10php-opcacheno fix listed
rapidfort alma 10php-pdono fix listed
rapidfort alma 10php-pgsqlno fix listed
rapidfort alma 10php-processno fix listed
rapidfort alma 10php-snmpno fix listed
rapidfort alma 10php-soapno fix listed
rapidfort alma 10php-xmlno fix listed
rapidfort debian 12php8.20:8.2.31-1~deb12u1
rapidfort debian 13php8.20:8.2.31-1~deb12u1
rapidfort fedora 43php8.4.21-1.fc43
rapidfort fedora 43php-bcmath8.4.21-1.fc43
rapidfort fedora 43php-cli8.4.21-1.fc43
rapidfort fedora 43php-common8.4.21-1.fc43
rapidfort fedora 43php-dba8.4.21-1.fc43
rapidfort fedora 43php-dbg8.4.21-1.fc43
rapidfort fedora 43php-devel8.4.21-1.fc43
rapidfort fedora 43php-embedded8.4.21-1.fc43
rapidfort fedora 43php-enchant8.4.21-1.fc43
rapidfort fedora 43php-ffi8.4.21-1.fc43
rapidfort fedora 43php-fpm8.4.21-1.fc43
rapidfort fedora 43php-gd8.4.21-1.fc43
rapidfort fedora 43php-gmp8.4.21-1.fc43
rapidfort fedora 43php-intl8.4.21-1.fc43
rapidfort fedora 43php-ldap8.4.21-1.fc43
rapidfort fedora 43php-mbstring8.4.21-1.fc43
rapidfort fedora 43php-mysqlnd8.4.21-1.fc43
rapidfort fedora 43php-odbc8.4.21-1.fc43
rapidfort fedora 43php-opcache8.4.21-1.fc43
rapidfort fedora 43php-pdo8.4.21-1.fc43
rapidfort fedora 43php-pdo-dblib8.4.21-1.fc43
rapidfort fedora 43php-pdo-firebird8.4.21-1.fc43
rapidfort fedora 43php-pgsql8.4.21-1.fc43
rapidfort fedora 43php-process8.4.21-1.fc43
rapidfort fedora 43php-snmp8.4.21-1.fc43
rapidfort fedora 43php-soap8.4.21-1.fc43
rapidfort fedora 43php-sodium8.4.21-1.fc43
rapidfort fedora 43php-tidy8.4.21-1.fc43
rapidfort fedora 43php-xml8.4.21-1.fc43
rapidfort Oracle Linux 10phpno fix listed
rapidfort Oracle Linux 10php-bcmathno fix listed
rapidfort Oracle Linux 10php-clino fix listed
rapidfort Oracle Linux 10php-commonno fix listed
rapidfort Oracle Linux 10php-dbano fix listed
rapidfort Oracle Linux 10php-dbgno fix listed
rapidfort Oracle Linux 10php-develno fix listed
rapidfort Oracle Linux 10php-embeddedno fix listed
rapidfort Oracle Linux 10php-enchantno fix listed
rapidfort Oracle Linux 10php-ffino fix listed
rapidfort Oracle Linux 10php-fpmno fix listed
rapidfort Oracle Linux 10php-gdno fix listed
rapidfort Oracle Linux 10php-gmpno fix listed
rapidfort Oracle Linux 10php-intlno fix listed
rapidfort Oracle Linux 10php-ldapno fix listed
rapidfort Oracle Linux 10php-mbstringno fix listed
rapidfort Oracle Linux 10php-mysqlndno fix listed
rapidfort Oracle Linux 10php-odbcno fix listed
rapidfort Oracle Linux 10php-opcacheno fix listed
rapidfort Oracle Linux 10php-pdono fix listed
rapidfort Oracle Linux 10php-pgsqlno fix listed
rapidfort Oracle Linux 10php-processno fix listed
rapidfort Oracle Linux 10php-snmpno fix listed
rapidfort Oracle Linux 10php-soapno fix listed
rapidfort Oracle Linux 10php-xmlno fix listed
rapidfort Red Hat 10phpno fix listed
rapidfort Red Hat 10php-bcmathno fix listed
rapidfort Red Hat 10php-clino fix listed
rapidfort Red Hat 10php-commonno fix listed
rapidfort Red Hat 10php-dbano fix listed
rapidfort Red Hat 10php-dbgno fix listed
rapidfort Red Hat 10php-develno fix listed
rapidfort Red Hat 10php-embeddedno fix listed
rapidfort Red Hat 10php-enchantno fix listed
rapidfort Red Hat 10php-ffino fix listed
rapidfort Red Hat 10php-fpmno fix listed
rapidfort Red Hat 10php-gdno fix listed
rapidfort Red Hat 10php-gmpno fix listed
rapidfort Red Hat 10php-intlno fix listed
rapidfort Red Hat 10php-ldapno fix listed
rapidfort Red Hat 10php-mbstringno fix listed
rapidfort Red Hat 10php-mysqlndno fix listed
rapidfort Red Hat 10php-odbcno fix listed
rapidfort Red Hat 10php-opcacheno fix listed
rapidfort Red Hat 10php-pdono fix listed
rapidfort Red Hat 10php-pgsqlno fix listed
rapidfort Red Hat 10php-processno fix listed
rapidfort Red Hat 10php-snmpno fix listed
rapidfort Red Hat 10php-soapno fix listed
rapidfort Red Hat 10php-xmlno fix listed
rapidfort rocky 10phpno fix listed
rapidfort rocky 10php-bcmathno fix listed
rapidfort rocky 10php-clino fix listed
rapidfort rocky 10php-commonno fix listed
rapidfort rocky 10php-dbano fix listed
rapidfort rocky 10php-dbgno fix listed
rapidfort rocky 10php-develno fix listed
rapidfort rocky 10php-embeddedno fix listed
rapidfort rocky 10php-enchantno fix listed
rapidfort rocky 10php-ffino fix listed
rapidfort rocky 10php-fpmno fix listed
rapidfort rocky 10php-gdno fix listed
rapidfort rocky 10php-gmpno fix listed
rapidfort rocky 10php-intlno fix listed
rapidfort rocky 10php-ldapno fix listed
rapidfort rocky 10php-mbstringno fix listed
rapidfort rocky 10php-mysqlndno fix listed
rapidfort rocky 10php-odbcno fix listed
rapidfort rocky 10php-opcacheno fix listed
rapidfort rocky 10php-pdono fix listed
rapidfort rocky 10php-pgsqlno fix listed
rapidfort rocky 10php-processno fix listed
rapidfort rocky 10php-snmpno fix listed
rapidfort rocky 10php-soapno fix listed
rapidfort rocky 10php-xmlno fix listed
rapidfort ubuntu 20.04php8.10:8.1.2-1ubuntu2.24
rapidfort ubuntu 20.04php8.30:8.3.6-0ubuntu0.24.04.9
rapidfort ubuntu 20.04php8.50:8.5.4-0ubuntu1.1
rapidfort ubuntu 22.04php8.10:8.1.2-1ubuntu2.24
rapidfort ubuntu 22.04php8.30:8.3.6-0ubuntu0.24.04.9
rapidfort ubuntu 22.04php8.50:8.5.4-0ubuntu1.1
rapidfort ubuntu 24.04php8.10:8.1.2-1ubuntu2.24
rapidfort ubuntu 24.04php8.30:8.3.6-0ubuntu0.24.04.9
rapidfort ubuntu 24.04php8.50:8.5.4-0ubuntu1.1
ubuntu 22.04php8.18.1.2-1ubuntu2.24
ubuntu 24.04php8.38.3.6-0ubuntu0.24.04.9
ubuntu 25.10php8.48.4.11-1ubuntu1.2
ubuntu 26.04php8.58.5.4-0ubuntu1.1
wolfiphp-8.28.2.31-r0

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.