CVE-2025-14179 json
SQL injection in pdo_firebird via NUL bytes in quoted strings
published 2026-05-07 6 mo ago modified 2026-09-10 59 d ago also BIT-libphp-2025-14179 , BIT-php-2025-14179 , BIT-php-min-2025-14179 , EUVD-2025-209755 , GHSA-w476-322c-wpvm
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami libphp 8.2.31, 8.3.31, 8.4.21, 8.5.6
- bitnami php 8.2.31, 8.3.31, 8.4.21, 8.5.6
- bitnami php-min 8.2.31, 8.3.31, 8.4.21, 8.5.6
- PHP Group PHP 8.2.31, 8.3.31, 8.4.21, 8.5.6
- php8.2 Debian 12 8.2.31-1~deb12u1
- php8.4 Debian 13 8.4.21-1~deb13u1
- php8.4 Debian 14 8.4.21-1
debian advisories DEBIAN-CVE-2025-14179
- php8.1 Ubuntu 22.04 LTS 8.1.2-1ubuntu2.24
- php8.3 Ubuntu 24.04 LTS 8.3.6-0ubuntu0.24.04.9
- php8.4 Ubuntu 25.10 8.4.11-1ubuntu1.2
- php8.5 Ubuntu 26.04 LTS 8.5.4-0ubuntu1.1
- php7.0 Ubuntu Pro 16.04 LTS 7.0.33-0ubuntu0.16.04.16+esm19
ubuntu advisories UBUNTU-CVE-2025-14179
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php8 openSUSE Tumbleweed 8.5.6-1.1
opensuse advisories openSUSE-SU-2026:10747-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-14179 updated cvss 8.1
php: SQL injection in pdo_firebird via NUL bytes in quoted strings
-
Red Hat Enterprise Linux 10 phpaffected: workaround, no fix available
-
Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more Red Hat Enterprise Linux 9 php, php-gd, php-cli, php-dba, php-dbg, php-ffi, +18 more Red Hat Enterprise Linux 10 php8.4 Red Hat Hardened Images phpnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 5 mo ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CISA ADP | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:X/V:X/RE:M/U:Amber |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libphp | >=8.2.0, <8.2.31 >=8.3.0, <8.3.31 >=8.4.0, <8.4.21 >=8.5.0, <8.5.6 |
8.2.31 8.3.31 8.4.21 8.5.6 |
| bitnami | php | >=8.2.0, <8.2.31 >=8.3.0, <8.3.31 >=8.4.0, <8.4.21 >=8.5.0, <8.5.6 |
8.2.31 8.3.31 8.4.21 8.5.6 |
| bitnami | php-min | >=8.2.0, <8.2.31 >=8.3.0, <8.3.31 >=8.4.0, <8.4.21 >=8.5.0, <8.5.6 |
8.2.31 8.3.31 8.4.21 8.5.6 |
Affected products
- PHP Group PHP
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 6
- Red Hat Red Hat Enterprise Linux 7
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
- Red Hat Red Hat Hardened Images
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
- Technology feeds
References
-
github.com
/php/php-src/security/advisories/GHSA-w476-322c-wpvm
vendor-advisory, advisory
-
access.redhat.com
/security/cve/CVE-2025-14179
vdb-entry, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2468567
issue-tracking, web
-
security.access.redhat.com
/data/csaf/v2/vex/2025/cve-2025-14179.json
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-14179
web
Sources
- CVE List CVE-2025-14179
- NVD CVE-2025-14179
- OSV BIT-libphp-2025-14179
- OSV BIT-php-2025-14179
- OSV BIT-php-min-2025-14179
- Maintainer advisory GHSA-w476-322c-wpvm
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of php/php-src published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.