CVE-2025-14180
December 27, 2025
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.
Affected Packages
https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.2.0alpha1 <php-8.2.30Fix Suggestion:
Update to version php-8.2.30https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.4.0alpha1 <php-8.4.16Fix Suggestion:
Update to version php-8.4.16https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.5.0alpha1 <php-8.5.1Fix Suggestion:
Update to version php-8.5.1https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.3.0alpha1 <php-8.3.29Fix Suggestion:
Update to version php-8.3.29https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.1.0alpha1 <php-8.1.34Fix Suggestion:
Update to version php-8.1.34Related ResourcesĀ (1)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
NULL Pointer Dereference
EPSS
Base Score:
0.03