REDHAT-BUG-2541615: Medium severity PHP PHP vulnerability

Published Sep 25, 2026
·
Updated

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.

Affected Software

1 affected component
PHP PHP

Event History

Sep 25, 2026
Data Sourced
via Red Hat·08:11 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

PHP clients using the HTTP stream wrapper are exposed when they follow redirects from a malicious or attacker-controlled HTTP server that returns a Location header with an empty value.

2

What must an attacker do to trigger the issue?

The attacker needs to cause the PHP HTTP stream wrapper to follow a redirect response whose Location header has an empty value. The out-of-bounds byte then influences whether the resulting redirect target resolves to the host root or the current directory.

3

What is the practical impact of exploitation?

A malicious server can influence the redirect destination constructed by the client, causing it to target either the host root or the current directory. The provided information does not establish further impacts beyond this redirect-target manipulation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203