CVE-2026-93682

Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header

Published Sep 25, 2026 CVSS 3.1 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
When the HTTP stream wrapper follows a redirect and the response carries a Location header with an empty value, the redirect code reads one byte past the end of the heap buffer holding the location. The value of that out-of-bounds byte decides which redirect target is built, so a malicious server controls whether the client is sent to the host root or to the current directory.

Analysis

AI-generated

Technical impact

An out-of-bounds read occurs when PHP's HTTP stream wrapper follows a redirect whose Location header is empty. The code reads one byte past the end of the buffer storing the location value, and that byte determines whether the client is redirected to the host root or to the current directory. This allows an attacker to influence a client's navigation path without modifying the requested URL, potentially enabling phishing or other malicious content delivery. The weakness is a classic misuse of buffer bounds, identified as CWE-125, and does not lead to code execution or privilege escalation on its own.

Affected Systems

The vulnerability affects PHP releases distributed by the PHP Group for the PHP language. No specific version numbers are listed in the advisory, so the impact applies to all affected PHP builds until the bug is fixed in a newer release.

Risk and Exploitability

The CVSS score of 5.8 indicates moderate severity; the EPSS score is unavailable, and the vulnerability is not listed on CISA KEV. The likely attack vector is remote: an attacker can serve a crafted HTTP response with an empty Location header to any PHP-enabled application that follows redirects. Without a patch, the attacker can subvert user navigation, but the potential for broader compromise is limited to the mild impact on redirection control.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PHP to the latest release that resolves the HTTP stream wrapper redirect bug, ensuring the bug is incorporated in your environment.
  • Verify that the updated PHP version correctly handles redirects with empty Location headers by conducting unit or integration tests against a controlled HTTP response.
  • If an upgrade is not immediately feasible, implement a temporary server-side check or configuration that suppresses following redirects when the Location header is empty, thereby preventing the out-of-bounds read.

Generated by OpenCVE AI on September 25, 2026 at 21:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4819-1 php8.2 security update
Debian DSA Debian DSA DSA-6514-1 php8.4 security update
Ubuntu USN Ubuntu USN USN-8936-1 PHP vulnerabilities
History
Type Values Removed Values Added
First Time appeared Php
Php php
CPEs cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
Vendors & Products Php
Php php
Type Values Removed Values Added
First Time appeared Php Group
Php Group php
Vendors & Products Php Group
Php Group php
Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description When the HTTP stream wrapper follows a redirect and the response carries a Location header with an empty value, the redirect code reads one byte past the end of the heap buffer holding the location. The value of that out-of-bounds byte decides which redirect target is built, so a malicious server controls whether the client is sent to the host root or to the current directory.
Title Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 25, 2026, 8:38 PM
Reserved
Sep 18, 2026, 2:18 PM
Status
Analyzed
Published
Sep 25, 2026, 8:17 PM
Modified
Oct 23, 2026, 2:58 PM
Severity
Moderate
Public date
Sep 25, 2026, 8:02 PM