Skip to main content

CVE-2026-91767: CWE-122 Heap-based buffer overflow in PHP Group PHP

0
Medium
VulnerabilityCVE-2026-91767cvecve-2026-91767cwe-122
Published: 09/25/2026 (09/25/2026, 20:53:42 UTC)
Source: CVE Database V5
Vendor/Project: PHP Group
Product: 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

Attack Vector
Adjacent Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

PHP Group

PHP

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/25/2026, 21:17:43 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses