CVE-2025-1861: Php5 · In PHP from 8.1. before 8.1.32, from 8.2
Affects php5Source GCVE Database
Not known to be exploited · CVSS 6.3 Medium · fixed in 7.0.33-0ubuntu0.16.04.16+esm15 : update php5 when convenient.
Data as of 24 Nov 2026, 21:15 UTC
Thin evidence
One scorer or none| CNA (php) | CVSS 4.0 | 6.3 |
|---|
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 7.0.33-0ubuntu0.16.04.16+esm15, 7.2.24-0ubuntu0.18.04.17+esm8, 7.4.3-4ubuntu2.29 +2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSphp8.3pkg:deb/ubuntu/php8.3?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSphp8.1pkg:deb/ubuntu/php8.1?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSphp7.4pkg:deb/ubuntu/php7.4?arch=source&distro=focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSphp7.2pkg:deb/ubuntu/php7.2?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSphp7.0pkg:deb/ubuntu/php7.0?arch=source&distro=esm-infra/xenialOther threats | Affected
| Fixed in
|
Ubuntu Pro 14.04 LTSphp5pkg:deb/ubuntu/php5?arch=source&distro=esm-infra-legacy/trustyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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
- ubuntu.com/security/CVE-2025-1861 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-1861 (opens in a new tab)
- github.com/php/php-src/security/advisories/GHSA-52jp-hrpf-2jff (opens in a new tab)
- github.com/php/php-src/commit/ac1a054bb3eb5994a199e8b18cca28cbabf5943e (opens in a new tab)
- ubuntu.com/security/notices/USN-7400-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7645-1 (opens in a new tab)