Skip to content

CVE-2025-14180 NULL Pointer Dereference in PDO quoting

HighCVSS 8.2 EPSS 0.70% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHPUbuntuDebianRed Hat

Description

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.

Upgrade path

30 packages: 20 fixed, 10 with no fix yet.

PackageAffectedFixed inStatus
PHP(Azure Linux 3.0) All versions No fix listed No fix yet
redhat/devspaces-tech-preview/idea-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/php8.4(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/php:8.2-8100020260106091451.f7998665(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/php:8.2-9040020260116191026.9(Red Hat rhel_eus 9.4) All versions No fix listed No fix yet
redhat/php:8.2-9060020260116185805.9(Red Hat rhel_eus 9.6) All versions No fix listed No fix yet
redhat/php:8.2-9070020260107073439.9(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/php:8.3-9060020260116180534.9(Red Hat rhel_eus 9.6) All versions No fix listed No fix yet
redhat/php:8.3-9070020260108073701.9(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1769162595(Red Hat openshift_ai 3.3 el9) All versions No fix listed No fix yet
alpine/php81(Alpine v3.19) < 8.1.34-r0 8.1.34-r0 Fixed
alpine/php82(Alpine v3.22) < 8.2.30-r0 8.2.30-r0 Fixed
alpine/php83(Alpine v3.22) < 8.3.29-r0 8.3.29-r0 Fixed
alpine/php83(Alpine v3.23) < 8.3.29-r0 8.3.29-r0 Fixed
alpine/php83(Alpine v3.24) < 8.3.29-r0 8.3.29-r0 Fixed
alpine/php84(Alpine v3.22) < 8.4.16-r0 8.4.16-r0 Fixed
alpine/php84(Alpine v3.23) < 8.4.16-r0 8.4.16-r0 Fixed
alpine/php84(Alpine v3.24) < 8.4.16-r0 8.4.16-r0 Fixed
alpine/php85(Alpine v3.23) < 8.5.1-r0 8.5.1-r0 Fixed
alpine/php85(Alpine v3.24) < 8.5.1-r0 8.5.1-r0 Fixed
debian/php8.2(Debian 12) < 8.2.30-1~deb12u1; = 8.2.5-2; = 8.2.7-1; = 8.2.7-1.1 +22 more 8.2.30-1~deb12u1 Fixed
debian/php8.4(Debian 13) < 8.4.16-1~deb13u1; = 8.4.11-1 8.4.16-1~deb13u1 Fixed
debian/php8.4(Debian 14) < 8.4.16-1; = 8.4.11-1; = 8.4.16-1~deb13u1 8.4.16-1 Fixed
PHP < 8.1.34; < 8.2.30; < 8.3.29; < 8.4.16 +6 more 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1 Fixed
PHP(CBL-Mariner 2.0) < 8.1.34-1 8.1.34-1 Fixed
redhat/php(Red Hat enterprise_linux 10.1) < 8.3.29-1.el10_1 8.3.29-1.el10_1 Fixed
redhat/php(Red Hat enterprise_linux_eus 10.0) < 8.3.19-1.el10_0.1 8.3.19-1.el10_0.1 Fixed
redhat/php-main(Red Hat hummingbird 1) < 8.5.5-1.1.hum1 8.5.5-1.1.hum1 Fixed
ubuntu/php8.1(Ubuntu 22.04) < 8.1.2-1ubuntu2.23 8.1.2-1ubuntu2.23 Fixed
ubuntu/php8.3(Ubuntu 24.04) < 8.3.6-0ubuntu0.24.04.6 8.3.6-0ubuntu0.24.04.6 Fixed

Affected products

ProductAffected versionsFixed in
PHP(CBL-Mariner:2.0) < 8.1.34-1 8.1.34-1
PHP(Azure Linux:3.0) All versions No fix listed
debian/php8.2(Debian:12) < 8.2.30-1~deb12u1 8.2.30-1~deb12u1
debian/php8.2(Debian:12) = 8.2.10-1 No fix listed
debian/php8.2(Debian:12) = 8.2.10-2 No fix listed
debian/php8.2(Debian:12) = 8.2.12-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-2 No fix listed
debian/php8.2(Debian:12) = 8.2.17-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-2 No fix listed
debian/php8.2(Debian:12) = 8.2.20-3 No fix listed
debian/php8.2(Debian:12) = 8.2.21-1 No fix listed
debian/php8.2(Debian:12) = 8.2.23-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-4 No fix listed
debian/php8.2(Debian:12) = 8.2.27-1 No fix listed
debian/php8.2(Debian:12) = 8.2.28-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.29-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.5-2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1 No fix listed
Show 43 more
ProductAffected versionsFixed in
debian/php8.2(Debian:12) = 8.2.7-1.1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1~deb12u1 No fix listed
debian/php8.4(Debian:13) < 8.4.16-1~deb13u1 8.4.16-1~deb13u1
debian/php8.4(Debian:13) = 8.4.11-1 No fix listed
debian/php8.4(Debian:14) < 8.4.16-1 8.4.16-1
debian/php8.4(Debian:14) = 8.4.11-1 No fix listed
debian/php8.4(Debian:14) = 8.4.16-1~deb13u1 No fix listed
PHP < 8.1.34 8.1.34
PHP < 8.2.30 8.2.30
PHP < 8.3.29 8.3.29
PHP < 8.4.16 8.4.16
PHP < 8.5.1 8.5.1
ubuntu/php8.1(Ubuntu:22.04) < 8.1.2-1ubuntu2.23 8.1.2-1ubuntu2.23
redhat/php(Red Hat:enterprise_linux:10.1) < 8.3.29-1.el10_1 8.3.29-1.el10_1
redhat/php(Red Hat:enterprise_linux_eus:10.0) < 8.3.19-1.el10_0.1 8.3.19-1.el10_0.1
redhat/php:8.2-8100020260106091451.f7998665(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/php:8.2-9070020260107073439.9(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.3-9070020260108073701.9(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/php:8.2-9040020260116191026.9(Red Hat:rhel_eus:9.4) All versions No fix listed
redhat/php:8.2-9060020260116185805.9(Red Hat:rhel_eus:9.6) All versions No fix listed
redhat/php:8.3-9060020260116180534.9(Red Hat:rhel_eus:9.6) All versions No fix listed
redhat/php-main(Red Hat:hummingbird:1) < 8.5.5-1.1.hum1 8.5.5-1.1.hum1
redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1769162595(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/php8.4(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/php(Red Hat:rhel_els:6) All versions No fix listed
redhat/devspaces-tech-preview/idea-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
alpine/php81(Alpine:v3.19) < 8.1.34-r0 8.1.34-r0
alpine/php82(Alpine:v3.22) < 8.2.30-r0 8.2.30-r0
alpine/php83(Alpine:v3.22) < 8.3.29-r0 8.3.29-r0
alpine/php83(Alpine:v3.23) < 8.3.29-r0 8.3.29-r0
alpine/php83(Alpine:v3.24) < 8.3.29-r0 8.3.29-r0
alpine/php84(Alpine:v3.22) < 8.4.16-r0 8.4.16-r0
alpine/php84(Alpine:v3.23) < 8.4.16-r0 8.4.16-r0
alpine/php84(Alpine:v3.24) < 8.4.16-r0 8.4.16-r0
alpine/php85(Alpine:v3.23) < 8.5.1-r0 8.5.1-r0
alpine/php85(Alpine:v3.24) < 8.5.1-r0 8.5.1-r0
ubuntu/php8.3(Ubuntu:24.04) < 8.3.6-0ubuntu0.24.04.6 8.3.6-0ubuntu0.24.04.6
PHP >= 8.1.0, < 8.1.34 8.1.34
PHP >= 8.2.0, < 8.2.30 8.2.30
PHP >= 8.3.0, < 8.3.29 8.3.29
PHP >= 8.4.0, < 8.4.16 8.4.16
PHP >= 8.5.0, < 8.5.1 8.5.1

References