# CVE-2026-93682: PHP HTTP stream wrapper out-of-bounds read in redirect handling

Source: https://junglewise.ai/threats/cve-2026-93682-when-the-http-stream-wrapper-follows-a-redirect-and-the-response  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-25. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-93682 · Severity: medium · CVSS 5.8 · Published 2026-09-25

PHP's HTTP stream wrapper, which allows web applications to fetch content from remote servers, contains a memory reading vulnerability when following redirects with empty Location headers. A malicious server can exploit this to redirect users unpredictably, though the practical impact is limited to non-deterministic redirect behavior rather than direct data exposure.

Technologies: [Php](https://junglewise.ai/threats/technologies/php-php). Vendors: [PHP](https://junglewise.ai/threats/vendors/php).

## Quick answers

**Is CVE-2026-93682 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-93682 being exploited in the wild.

**How severe is CVE-2026-93682?** Medium severity, with a CVSS score of 5.8, published 25 September 2026.

**Which products and versions are affected?** Php 8.1.32+, 8.2.0 through 8.2.33, 8.3.0 through 8.3.34, 8.4.0 through 8.4.25, 8.5.0 through 8.5.10.

**Is there a fix for CVE-2026-93682?** A patch was published on 2026-09-25: PHP 8.2.34, 8.3.35, 8.4.26, 8.5.11 released with fix Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-93682 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-93682?** Check whether you run Php at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a one-byte out-of-bounds heap read in the HTTP stream wrapper's redirect handling code (http_fopen_wrapper.c). When an empty Location header is processed, the allocation is sized for the NUL terminator only, but the redirect logic reads a second byte to determine whether the location is absolute or relative. An attacker controlling a server can influence this stray byte to alter the redirect target, though the byte is never exposed—only its value affects path resolution.

## Affected products

- PHP PHP 8.1.32+, 8.2.0 through 8.2.33, 8.3.0 through 8.3.34, 8.4.0 through 8.4.25, 8.5.0 through 8.5.10

## Timeline

- 2026-09-25: disclosed: CVE-2026-93682 published
- 2026-09-25: patched: PHP 8.2.34, 8.3.35, 8.4.26, 8.5.11 released with fix

## References

- [https://github.com/php/php-src/security/advisories/GHSA-7875-c8px-7q5f](https://github.com/php/php-src/security/advisories/GHSA-7875-c8px-7q5f)

## Related threats

- [PHP stream filter heap information leak with NUL bytes in line-break-chars](https://junglewise.ai/threats/cve-2026-92842-the-convert-base64-encode-convert-quoted-printable-encode-and)
- [PHP OpenSSL stream peer verification certificate validation bypass](https://junglewise.ai/threats/cve-2026-91769-php-s-openssl-stream-peer-verification-checks-the-certificate-s)
- [PHP OpenSSL heap-buffer overflow in wildcard certificate name matching](https://junglewise.ai/threats/cve-2026-91767-php-openssl-matches-wildcard-name-in-ext-openssl-xp-ssl-c)
- [PHP HTTP stream wrapper credential leak on cross-origin redirect](https://junglewise.ai/threats/cve-2026-91766-when-the-http-stream-wrapper-follows-a-redirect-it-forwards-the)
- [PHP SOAP XML parser unbounded recursion denial of service](https://junglewise.ai/threats/cve-2026-91765-cleanup-xml-node-in-the-soap-xml-parser-recurses-once-per-xml)
