# CVE-2025-14180: NULL Pointer Dereference in PDO quoting

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1 (CNA); fix release not confirmed
- Status: published
- Published: 2025-12-27 · Modified: 2025-12-29
- Aliases: UBUNTU-CVE-2025-14180, DEBIAN-CVE-2025-14180, ALPINE-CVE-2025-14180
- Record: https://cvemate.com/vulnerability/CVE-2025-14180 · JSON: https://cvemate.com/vulnerability/CVE-2025-14180/json

## Description

```text
In PHP versions 8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1 when using the PDO PostgreSQL driver with PDO::ATTR_EMULATE_PREPARES enabled, an invalid character sequence (such as \x99) in a prepared statement parameter may cause the quoting function PQescapeStringConn to return NULL, leading to a null pointer dereference in pdo_parse_params() function. This may lead to crashes (segmentation fault) and affect the availability of the target server.
```

## Signals

- CVSS: 8.2 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.723%, percentile 55.38%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine php81 (Alpine Linux): \< 8.1.34-r0
- alpine php82 (Alpine Linux): \< 8.2.30-r0
- alpine php83 (Alpine Linux): \< 8.3.29-r0
- alpine php84 (Alpine Linux): \< 8.4.16-r0
- alpine php85 (Alpine Linux): \< 8.5.1-r0
- debian php8.2 (Debian): \< 8.2.30-1~deb12u1
- debian php8.4 (Debian): \< 8.4.16-1~deb13u1 \| \< 8.4.16-1
- ubuntu php8.1 (Ubuntu): \< 8.1.2-1ubuntu2.23
- ubuntu php8.3 (Ubuntu): \< 8.3.6-0ubuntu0.24.04.6
- ubuntu php8.4 (Ubuntu): \< 8.4.11-1ubuntu1.1
- php group php: ≥ 8.1.\*, \< 8.1.34 \| ≥ 8.2.\*, \< 8.2.30 \| ≥ 8.3.\*, \< 8.3.29 \| ≥ 8.4.\*, \< 8.4.16 \| ≥ 8.5.\*, \< 8.5.1
- php php: ≥ 8.1.0, \< 8.1.34 \| ≥ 8.2.0, \< 8.2.30 \| ≥ 8.3.0, \< 8.3.29 \| ≥ 8.4.0, \< 8.4.16 \| ≥ 8.5.0, \< 8.5.1

## References

- <https://github.com/php/php-src/security/advisories/GHSA-8xr5-qppj-gvwj>
- <https://ubuntu.com/security/CVE-2025-14180>
- <https://www.cve.org/CVERecord?id=CVE-2025-14180>
- <https://github.com/php/php-src/commit/727a4ddc39ca9b78131e06b5537fe8b6c3dd6fe7>
- <https://ubuntu.com/security/notices/USN-7953-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-14180>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-14180>
- <https://security.alpinelinux.org/vuln/CVE-2025-14180>

---

Data as of 2026-12-05T05:36:07.847Z. 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
