#VU105642 Input validation error in PHP - CVE-2025-1861


| Updated: 2025-03-20

Vulnerability identifier: #VU105642

Vulnerability risk: Low

CVSSv4.0: 0.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear]

CVE-ID: CVE-2025-1861

CWE-ID: CWE-20

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PHP
Universal components / Libraries / Scripting languages

Vendor: PHP Group

Description

The vulnerability allows a remote attacker to redirect the application to a malicious URL.

The vulnerability exists due to insufficient validation of user-supplied input. The Stream HTTP wrapper truncates redirect location to 1024 bytes, which can lead to the application being redirected to a wrong URL.

Mitigation
Install update from vendor's website.

Vulnerable software versions

PHP: 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.17, 8.4.1 - 8.4.4


External links
https://www.php.net/archive/2025.php#2025-03-13
https://github.com/php/php-src/security/advisories/GHSA-52jp-hrpf-2jff


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability