# CVE-2025-14179: SQL injection in pdo_firebird via NUL bytes in quoted strings

- Severity: High 7.4 (CVSS:4.0, scored by php) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-05-10T03:51:14.596Z
- Modified: 2026-11-11T02:55:55.033Z
- Also known as: BIT-LIBPHP-2025-14179, BIT-PHP-2025-14179, BIT-PHP-MIN-2025-14179, GHSA-w476-322c-wpvm
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- pdo_firebird: from 8.2.* before 8.2.31; from 8.3.* before 8.3.31; from 8.4.* before 8.4.21; from 8.5.* before 8.5.6
- php: no versions given
- php8.4: no versions given
- php:7.4/php: no versions given
- php:8.2/php: no versions given
- php:8.3/php: no versions given
- php php: from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- libphp (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- php (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- php-min (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6

## Every score

- php: CVSS:4.0 7.4 High `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`
- redhat-SADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm> (advisory, vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-14179> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2468567> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14179.json> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-14179> (web)

## Sources

- CVE List: [CVE-2025-14179](https://www.cve.org/CVERecord?id=CVE-2025-14179), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2025-14179](https://nvd.nist.gov/vuln/detail/CVE-2025-14179), Public domain, modified 2026-07-25
- Bitnami Vulnerability Database: [BIT-LIBPHP-2025-14179](https://osv.dev/vulnerability/BIT-LIBPHP-2025-14179), Apache-2.0, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-PHP-2025-14179](https://osv.dev/vulnerability/BIT-PHP-2025-14179), Apache-2.0, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2025-14179](https://osv.dev/vulnerability/BIT-PHP-MIN-2025-14179), Apache-2.0, modified 2026-11-11

---

Page: https://cve.day/CVE-2025-14179 · Whole record: https://cve.day/CVE-2025-14179.json · Rebuilt by cve.day 2026-11-25T22:59:12.159Z
