CVE-2025-1861: Stream HTTP wrapper truncates redirect location to 1024 bytes

Published Mar 13, 2025
·
Updated

Fixed (Stream HTTP wrapper truncate redirect location to 1024 bytes). (CVE-2025-1861)

Other sources

In PHP from 8.1. before 8.1.32, from 8.2. before 8.2.28, from 8.3. before 8.3.19, from 8.4. before 8.4.5, when parsing HTTP redirect in the response to an HTTP request, there is currently limit on the location value size caused by limited size of the location buffer to 1024. However as per RFC9110, the limit is recommended to be 8000. This may lead to incorrect URL truncation and redirecting to a wrong location.

Debian

Affected Software

9 affected componentsFixes available
PHP PHP<8.2.28
8.2.28
debian/php7.4<=7.4.33-1+deb11u5
7.4.33-1+deb11u8
debian/php8.2<=8.2.26-1~deb12u1
8.2.28-1~deb12u1
debian/php8.4
8.4.5-1
PHP PHP>=8.1.0<8.1.31
PHP PHP>=8.2.0<8.2.26
PHP PHP>=8.3.0<8.3.14
PHP PHP>=8.4.0<8.4.5
NetApp Ontap=9

Event History

Mar 13, 2025
CVE Published
via PHP·12:00 AM
Mar 30, 2025
CVE Published
via MITRE·05:57 AM
Data Sourced
via MITRE·05:57 AM
DescriptionWeakness
Data Sourced
via NVD·06:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 AM
Affected Software
Data Sourced
via Red Hat·07:01 AM
DescriptionSeverityAffected Software
Apr 4, 2025
Data Sourced
via Ubuntu·11:16 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-1861?

CVE-2025-1861 has been classified as a moderate severity vulnerability.

2

How do I fix CVE-2025-1861?

To fix CVE-2025-1861, update PHP to version 8.3.19 or later.

3

What does CVE-2025-1861 affect?

CVE-2025-1861 affects PHP versions up to 8.3.19.

4

What is the nature of the vulnerability in CVE-2025-1861?

CVE-2025-1861 addresses a security issue that allows the truncation of HTTP redirect locations to 1024 bytes.

5

Is there a workaround for CVE-2025-1861?

There is no official workaround for CVE-2025-1861; updating to the fixed version is recommended.

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