{"id":"CVE-2026-91767","revision":"bfd2c079b2804781a712c1b3d50649f8","records":[{"revision":"bfd2c079b2804781a712c1b3d50649f8","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-91767","aliases":[],"title":"Heap-buffer-overflow in php_openssl_matches_wildcard_name on crafted server cert wildcard CN","description":"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.","state":0,"publishedAt":"2026-09-25T20:53:42.587+00:00","modifiedAt":"2026-09-28T13:31:31.64+00:00","affected":[{"ecosystem":"Vendor product","name":"ext-openssl","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"PHP Group\",\n                    \"product\": \"PHP\",\n                    \"packageName\": \"ext-openssl\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"8.2.*\",\n                            \"lessThan\": \"8.2.34\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"8.3.*\",\n                            \"lessThan\": \"8.3.35\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"8.4.*\",\n                            \"lessThan\": \"8.4.26\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"8.5.*\",\n                            \"lessThan\": \"8.5.11\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/php/php-src/security/advisories/GHSA-xr7j-rvgx-xq5p"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-91767","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-91767","identifiers":["CVE-2026-91767"]},"retained":false,"historicalAffected":[]}],"coverage":[]}