Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
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.16
Fix Suggestion:
Update to version php-8.4.16
https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.1.0 <php-8.1.34
Fix Suggestion:
Update to version php-8.1.34
https://github.com/php/php-src.git (GITHUB):
Affected version(s) =php-8.5.0 <php-8.5.1
Fix Suggestion:
Update to version php-8.5.1
https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.3.0 <php-8.3.29
Fix Suggestion:
Update to version php-8.3.29
https://github.com/php/php-src.git (GITHUB):
Affected version(s) >=php-8.2.0 <php-8.2.30
Fix Suggestion:
Update to version php-8.2.30
Do you need more information?
Contact Us
CVSS 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