CVE-2026-25290
Published:July 07, 2026
Updated:July 07, 2026
NULL pointer dereference (denial of service) in PHP PDO via pdo_pgsql. When PDO emulated prepared statements are enabled (PDO::ATTR_EMULATE_PREPARES = true) on a PostgreSQL connection, supplying a parameter that contains an invalid multibyte sequence for the connection encoding causes libpq's escape function to return NULL. PDO's parameter parser in ext/pdo/pdo_sql_parser.re then reads the length of that NULL escaped value (ZSTR_LEN on a NULL zend_string), triggering a NULL pointer dereference and a segmentation fault that crashes the PHP worker process mid-transaction.
Affected Packages
https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.4.0 <php-8.4.16Fix Suggestion:
Update to version php-8.4.16https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.3.0 <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.0 <php-8.1.34Fix Suggestion:
Update to version php-8.1.34https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.2.0 <php-8.2.30Fix Suggestion:
Update to version php-8.2.30https://github.com/php/php-src.git (GITHUB):
Affected version(s) =php-8.5.0 <php-8.5.1Fix Suggestion:
Update to version php-8.5.1Related Resources (1)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.3
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
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
3.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW