Skip to main content
VulnerabilityPublished Updated

CVE-2025-1861: PHP · Incorrect Calculation of Buffer Size

Affects PHPSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.3 Medium · fixed in 8.5.0 : update PHP when convenient.

Data as of 30 Oct 2026, 00:30 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (php)CVSS 4.06.3
Patch
Available – fixed in 8.5.0, 8.4.0, 8.3.0 +1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 29 Oct 2026.

What to do

Upgrade PHP to 8.5.0, 8.4.0, 8.3.0 or 8.2.0.

Affected software

ProductAffectedFixed in
PHP Group PHPAffected
  • >=8.1.0 <8.2.0
  • >=8.2.0 <8.3.0
  • >=8.3.0 <8.4.0
  • >=8.4.0 <8.5.0
Fixed in
  • 8.2.0
  • 8.3.0
  • 8.4.0
  • 8.5.0

AI-suggested

Fixed versions are available starting from PHP 8.2.0, 8.3.0, 8.4.0, and 8.5.0. Users should upgrade to these or later versions to remediate this vulnerability. No additional mitigation is required if the system is running a fixed version.

Description

CVE-2025-1861 is a vulnerability in PHP versions 8.1.* before 8.1.32, 8.2.* before 8.2.28, 8.3.* before 8.3.19, and 8.4.* before 8.4.5. It involves an incorrect calculation of buffer size when parsing HTTP redirect responses, where the location buffer is limited to 1024 bytes instead of the RFC9110 recommended 8000 bytes. This can cause incorrect URL truncation and potentially redirect users to unintended locations.

References

Community reviews

Loading reviews…