CVE-2025-1861

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-1861
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-1861.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-1861
Aliases
Related
Published
2025-03-30T06:15:14Z
Modified
2025-04-01T22:53:19.809969Z
Downstream
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / php7.4

Package

Name
php7.4
Purl
pkg:deb/debian/php7.4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.4.33-1+deb11u8

Affected versions

7.*

7.4.21-1+deb11u1
7.4.25-1+deb11u1
7.4.26-1
7.4.28-1+deb11u1
7.4.30-1+deb11u1
7.4.33-1+deb11u1
7.4.33-1+deb11u3
7.4.33-1+deb11u4
7.4.33-1+deb11u5
7.4.33-1+deb11u6
7.4.33-1+deb11u7

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / php8.2

Package

Name
php8.2
Purl
pkg:deb/debian/php8.2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.2.28-1~deb12u1

Affected versions

8.*

8.2.5-2
8.2.7-1~deb12u1
8.2.7-1
8.2.7-1.1
8.2.7-1.2
8.2.10-1
8.2.10-2
8.2.12-1
8.2.16-1
8.2.16-2
8.2.17-1
8.2.18-1~deb12u1
8.2.18-1
8.2.20-1~deb12u1
8.2.20-2
8.2.20-3
8.2.21-1
8.2.23-1
8.2.24-1~deb12u1
8.2.24-1
8.2.26-1~deb12u1
8.2.26-4
8.2.27-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / php8.4

Package

Name
php8.4
Purl
pkg:deb/debian/php8.4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.4.5-1

Affected versions

8.*

8.4.0~alpha1-1
8.4.0~alpha4-1
8.4.0~beta3-1
8.4.0~beta4-1
8.4.0~beta5-1
8.4.0~rc1-1
8.4.0~rc4-1
8.4.1-4
8.4.1-5
8.4.1-6
8.4.2-1
8.4.3-1
8.4.4-1
8.4.4-1.1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed