PHP Group PHP
NULL Pointer Dereference in PDO quoting
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8.1.*, < 8.1.34
- >= 8.2.*, < 8.2.30
- >= 8.3.*, < 8.3.29
- >= 8.4.*, < 8.4.16
- >= 8.5.*, < 8.5.1
Fixed in 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1
Mitigation
Upgrade PHP to 8.1.34 or 8.2.30 or 8.3.29 or 8.4.16 or 8.5.1 or later.
References
- Vendor advisory github.com/php/php-src/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gl1tch0x1/PHP_8.1.x_Exploit | 29 Apr 2026 +122 d | 1 | Informational · detection
Flags · score 35
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.