# CVE-2025-14179: SQL injection in pdo\_firebird via NUL bytes in quoted strings

- Priority: **Routine**
- Reason: Not severe (CVSS 7.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-10 · Modified: 2026-07-15
- Aliases: UBUNTU-CVE-2025-14179, DEBIAN-CVE-2025-14179, CGA-rv7q-5wx3-34gq, CGA-xr7x-wm2v-h77x
- Record: https://cvemate.com/vulnerability/CVE-2025-14179 · JSON: https://cvemate.com/vulnerability/CVE-2025-14179/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.439%, percentile 39.879%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard php-8.2 (Chainguard): \< 8.2.31-r0
- wolfi php-8.2 (Wolfi): \< 8.2.31-r0
- debian php8.2 (Debian): \< 8.2.31-1~deb12u1
- debian php8.4 (Debian): \< 8.4.21-1~deb13u1 \| \< 8.4.21-1
- ubuntu php5 (Ubuntu): All versions (No fix recorded)
- ubuntu php7.0 (Ubuntu): \< 7.0.33-0ubuntu0.16.04.16+esm19
- ubuntu php7.2 (Ubuntu): All versions (No fix recorded)
- ubuntu php7.4 (Ubuntu): All versions (No fix recorded)
- ubuntu php8.1 (Ubuntu): \< 8.1.2-1ubuntu2.24
- ubuntu php8.3 (Ubuntu): \< 8.3.6-0ubuntu0.24.04.9
- ubuntu php8.4 (Ubuntu): \< 8.4.11-1ubuntu1.2
- ubuntu php8.5 (Ubuntu): \< 8.5.4-0ubuntu1.1
- php group php: ≥ 8.2.\*, \< 8.2.31 \| ≥ 8.3.\*, \< 8.3.31 \| ≥ 8.4.\*, \< 8.4.21 \| ≥ 8.5.\*, \< 8.5.6
- php 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

## References

- <https://github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm>
- <https://access.redhat.com/security/cve/CVE-2025-14179>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2468567>
- <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14179.json>
- <https://ubuntu.com/security/CVE-2025-14179>
- <https://www.cve.org/CVERecord?id=CVE-2025-14179>
- <https://ubuntu.com/security/notices/USN-8336-1>
- <https://ubuntu.com/security/notices/USN-8513-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-14179>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-14179>

---

Data as of 2026-12-05T06:45:44.003Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
