CVE-2025-14179
published high CVSS 4.0 · 7.4SQL injection in pdo_firebird via NUL bytes in quoted strings
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PHP Group | — | pdo_firebirdPHP · 8.2.* to < 8.2.31 · 8.3.* to < 8.3.31 · 8.4.* to < 8.4.21 · 8.5.* to < 8.5.6 · Other versions: affected | Affected | Not stated | php |
| Red Hat Enterprise Linux | 10 | php | Affected | Not stated | redhat-SADP |
| Red Hat Enterprise Linux | 10 | php8.4 | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 6, 7, 9 | php | Unaffected | Not required | redhat-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | trixie | php8.4 | Advisory build | 8.4.21-1~deb13u1 | DSA-6256-1 |
| Ubuntu | questing | php8.4 | Advisory build | 8.4.11-1ubuntu1.2 | USN-8336-1 |
Show 102 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | 8 | php:7.4/php | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 8, 9 | php:8.2/php | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 9 | php:8.3/php | Unaffected | Not required | redhat-SADP |
| Red Hat | — | phpRed Hat Hardened Images | Unaffected | Not required | redhat-SADP |
| SUSE / openSUSE | SLE-15-SP4 | apache2-mod_php8aarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| Debian | bookworm | php8.2 | Advisory build | 8.2.31-1~deb12u1 | DSA-6255-1 |
| SUSE / openSUSE | SLE-15-SP4 | apache2-mod_php8ppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | apache2-mod_php8s390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | apache2-mod_php8x86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8aarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8ppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8s390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8x86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-bcmathaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-bcmathppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-bcmaths390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-bcmathx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-bz2aarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-bz2ppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-bz2s390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-bz2x86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-calendaraarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-calendarppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-calendars390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-calendarx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-cliaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-clippc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-clis390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-clix86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ctypeaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ctypeppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ctypes390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ctypex86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-curlaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-curlppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-curls390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-curlx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-dbaaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-dbappc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-dbas390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-dbax86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-develaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-develppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-devels390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-develx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-domaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-domppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-doms390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-domx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-embedaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-embedppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-embeds390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-embedx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-enchantaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-enchantppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-enchants390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-enchantx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-exifaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-exifppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-exifs390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-exifx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fastcgiaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fastcgippc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fastcgis390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fastcgix86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fileinfoaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fileinfoppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fileinfos390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fileinfox86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fpmaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fpmppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fpms390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-fpmx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ftpaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ftpppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ftps390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ftpx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gdaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gdppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gds390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gdx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gettextaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gettextppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gettexts390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gettextx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gmpaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gmpppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gmps390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-gmpx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-iconvaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-iconvppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-iconvs390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-iconvx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-intlaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-intlppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-intls390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-intlx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ldapaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ldapppc64le | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ldaps390x | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-ldapx86_64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
| SUSE / openSUSE | SLE-15-SP4 | php8-mbstringaarch64 | Advisory build | 8.0.30-150400.4.65.1 | SUSE-SU-2026:2037-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
A flaw was found in PHP. 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 flaw allows SQL injection when attacker-controlled values are quoted via `PDO::quote()` and embedded in SQL statements.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- php · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHP Group | PHP | 8.2.* to < 8.2.31 (affected · semver)8.3.* to < 8.3.31 (affected · semver)8.4.* to < 8.4.21 (affected · semver)8.5.* to < 8.5.6 (affected · semver)Default: affected | php · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 6 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
4- https://access.redhat.com/security/cve/CVE-2025-14179
- RHBZ#2468567 https://bugzilla.redhat.com/show_bug.cgi?id=2468567
- https://github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14179.json
Provider assertions
3php · cna
SQL injection in pdo_firebird via NUL bytes in quoted strings
redhat-SADP · adp
php: SQL injection in pdo_firebird via NUL bytes in quoted strings
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9b375338432fdea40cddec54816a86967f40cc91c254b677a80596e00a1dd073
- Ingested
- 23 Sep 2026, 08:37:44 UTC
- Source record
- Official CVE record