{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-91767", "assignerOrgId": "dd77f84a-d19a-4638-8c3d-a322d820ed2b", "state": "PUBLISHED", "assignerShortName": "php", "dateReserved": "2026-09-15T00:41:16.041Z", "datePublished": "2026-09-25T20:53:42.587Z", "dateUpdated": "2026-09-28T13:31:31.640Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "dd77f84a-d19a-4638-8c3d-a322d820ed2b", "shortName": "php", "dateUpdated": "2026-09-25T20:53:42.587Z" }, "title": "Heap-buffer-overflow in php_openssl_matches_wildcard_name on crafted server cert wildcard CN", "datePublic": "2026-09-25T20:49:00.000Z", "problemTypes": [ { "descriptions": [ { "lang": "en", "cweId": "CWE-122", "description": "CWE-122 Heap-based buffer overflow", "type": "CWE" } ] } ], "impacts": [ { "capecId": "CAPEC-100", "descriptions": [ { "lang": "en", "value": "CAPEC-100 Overflow Buffers" } ] } ], "affected": [ { "vendor": "PHP Group", "product": "PHP", "packageName": "ext-openssl", "versions": [ { "status": "affected", "version": "8.2.*", "lessThan": "8.2.34", "versionType": "semver" }, { "status": "affected", "version": "8.3.*", "lessThan": "8.3.35", "versionType": "semver" }, { "status": "affected", "version": "8.4.*", "lessThan": "8.4.26", "versionType": "semver" }, { "status": "affected", "version": "8.5.*", "lessThan": "8.5.11", "versionType": "semver" } ], "defaultStatus": "unaffected" } ], "descriptions": [ { "lang": "en", "value": "php_openssl_matches_wildcard_name() in ext/openssl/xp_ssl.c underflows the length argument passed to memchr() when a TLS server certificate presents a wildcard name whose literal characters are together longer than the hostname being verified. A malicious server presenting such a certificate makes the PHP client read up to SIZE_MAX bytes past the end of a heap allocation. The path is reachable from any default client stream, because verify_peer_name is enabled by default.", "supportingMedia": [ { "type": "text/html", "base64": false, "value": "
php_openssl_matches_wildcard_name() in ext/openssl/xp_ssl.c underflows the length argument passed to memchr() when a TLS server certificate presents a wildcard name whose literal characters are together longer than the hostname being verified. A malicious server presenting such a certificate makes the PHP client read up to SIZE_MAX bytes past the end of a heap allocation. The path is reachable from any default client stream, because verify_peer_name is enabled by default.