CVE-2025-14180

NULL Pointer Dereference in PDO quoting

Published Dec 27, 2025 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6088-1 php8.4 security update
Debian DSA Debian DSA DSA-6154-1 php8.2 security update
Ubuntu USN Ubuntu USN USN-7953-1 PHP vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Php
Php php
Vendors & Products Php
Php php
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
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.
Title NULL Pointer Dereference in PDO quoting
Weaknesses CWE-476
References
Metrics cvssV4_0

{'score': 8.2, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Dec 29, 2025, 4:00 PM
Reserved
Dec 6, 2025, 6:43 AM
Status
Analyzed
Published
Dec 27, 2025, 8:15 PM
Modified
Oct 13, 2026, 9:10 AM
Severity
Important
Public date
Dec 27, 2025, 7:21 PM