CVE-2026-91767: CWE-122 Heap-based buffer overflow in PHP Group PHP
CVE-2026-91767 is a heap-based buffer overflow vulnerability in the PHP OpenSSL extension. It occurs in the function php_openssl_matches_wildcard_name() when processing TLS server certificates with wildcard names longer than the hostname being verified. This flaw can cause the PHP client to read memory beyond the allocated heap buffer. The vulnerability is reachable from any default client stream because peer name verification is enabled by default. The CVSS score is 6.5, indicating medium severity.
AI Analysis
Technical Summary
The vulnerability exists in the php_openssl_matches_wildcard_name() function within ext/openssl/xp_ssl.c of PHP. When a TLS server certificate presents a wildcard name whose literal characters exceed the length of the hostname being verified, the length argument passed to memchr() underflows. This leads to reading up to SIZE_MAX bytes past the end of a heap allocation, causing a heap-based buffer overflow. The flaw is exploitable via any default client stream due to verify_peer_name being enabled by default.
Potential Impact
An attacker controlling a malicious TLS server can present a specially crafted certificate with an overly long wildcard name, triggering a heap-based buffer overflow in the PHP client. This could lead to memory corruption and potentially impact confidentiality by reading unintended memory. There is no indication of integrity or availability impact. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the PHP Group vendor advisory for current remediation guidance. Until a fix is available, consider disabling peer name verification in client streams if feasible, though this reduces security. Monitor official PHP security channels for updates and patches addressing this vulnerability.
CVE-2026-91767: CWE-122 Heap-based buffer overflow in PHP Group PHP
Description
CVE-2026-91767 is a heap-based buffer overflow vulnerability in the PHP OpenSSL extension. It occurs in the function php_openssl_matches_wildcard_name() when processing TLS server certificates with wildcard names longer than the hostname being verified. This flaw can cause the PHP client to read memory beyond the allocated heap buffer. The vulnerability is reachable from any default client stream because peer name verification is enabled by default. The CVSS score is 6.5, indicating medium severity.
CVSS v3.1
Score 6.5medium
Affected software
PHP Group
PHP
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the php_openssl_matches_wildcard_name() function within ext/openssl/xp_ssl.c of PHP. When a TLS server certificate presents a wildcard name whose literal characters exceed the length of the hostname being verified, the length argument passed to memchr() underflows. This leads to reading up to SIZE_MAX bytes past the end of a heap allocation, causing a heap-based buffer overflow. The flaw is exploitable via any default client stream due to verify_peer_name being enabled by default.
Potential Impact
An attacker controlling a malicious TLS server can present a specially crafted certificate with an overly long wildcard name, triggering a heap-based buffer overflow in the PHP client. This could lead to memory corruption and potentially impact confidentiality by reading unintended memory. There is no indication of integrity or availability impact. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the PHP Group vendor advisory for current remediation guidance. Until a fix is available, consider disabling peer name verification in client streams if feasible, though this reduces security. Monitor official PHP security channels for updates and patches addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- php
- Date Reserved
- 2026-09-15T00:41:16.041Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ab6e198f7a7c5410648d4d6
Added to database: 09/25/2026, 21:03:20 UTC
Last enriched: 09/25/2026, 21:17:43 UTC
Last updated: 09/25/2026, 21:29:08 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.