CVE-2025-14180
PDO quoting result null deref
Severity: High CVSS 8.2. Status in our packages: Fixed.
About CVE-2025-14180
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.
Description quoted from the CVE record at cve.org.
| Published | 2025-12-27 |
|---|---|
| Weakness | CWE-476 NULL Pointer Dereference |
| CVSS | High 8.2 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 (scored by the CVE numbering authority) |
| Affected upstream | PHP 8.1.* before 8.1.34; PHP 8.2.* before 8.2.30; PHP 8.3.* before 8.3.29; PHP 8.4.* before 8.4.16; PHP 8.5.* before 8.5.1 |
Status in GetPageSpeed packages
| Product | Status | Fixed in | Details |
|---|---|---|---|
| PHP 7.4 on Ubuntu 20.04 | Fixed | 1:7.4.33-31+gps1 | Everpatch PHP 7.4 |
| PHP 8.0 on Ubuntu 20.04 | Fixed | 1:8.0.30-25+gps1 | Everpatch PHP 8.0 |
| PHP 8.1 on Ubuntu 20.04 | Fixed | 8.1.34-9+gps1 | Everpatch PHP 8.1 |
| PHP 8.2 on Ubuntu 20.04 | Fixed | 8.2.35-1+gps1 | Everpatch PHP 8.2 |
| PHP 8.3 on Ubuntu 20.04 | Fixed | 8.3.36-1+gps1 | Everpatch PHP 8.3 |
| PHP 8.4 on Ubuntu 20.04 | Fixed | 8.4.27-1+gps1 | Everpatch PHP 8.4 |
| PHP 7.3 on Debian 10 | Fixed | 7.3.33-35+gps1 | Everpatch PHP 7.3 |
| PHP 7.4 on Debian 10 | Fixed | 1:7.4.33-31+gps1 | Everpatch PHP 7.4 |
Check a server for CVE-2025-14180
Everpatch PHP on Debian and Ubuntu: PHP 7.4 on Ubuntu 20.04 1:7.4.33-31+gps1, PHP 8.0 on Ubuntu 20.04 1:8.0.30-25+gps1, PHP 8.1 on Ubuntu 20.04 8.1.34-9+gps1, PHP 8.2 on Ubuntu 20.04 8.2.35-1+gps1, PHP 8.3 on Ubuntu 20.04 8.3.36-1+gps1, PHP 8.4 on Ubuntu 20.04 8.4.27-1+gps1, PHP 7.3 on Debian 10 7.3.33-35+gps1, PHP 7.4 on Debian 10 1:7.4.33-31+gps1 or later. The Debian changelog names every CVE a build fixes.
dpkg-query -W 'php*-common'
zgrep -F CVE-2025-14180 /usr/share/doc/php*-common/changelog.Debian.gzAfter a PHP update, restart PHP-FPM (and Apache httpd if it runs mod_php): the old processes keep the vulnerable code until then.
Fixed in the same build
- CVE-2026-6722: Use-After-Free in SOAP using Apache map
- CVE-2026-6103: Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection
- CVE-2025-14181: Integer overflow to buffer overflow in soap HTTP parsing
- CVE-2025-14179: SQL injection via NUL bytes in quoted strings
- CVE-2025-14178: Heap buffer overflow in array_merge()
- CVE-2025-14177: Information Leak of Memory in getimagesize
Scanner feeds (OVAL, CSAF, OpenVEX), fix-time targets and answers to common questions: the CVE tracker.