Input validation error in PHP - CVE-2004-0958

 

Input validation error in PHP - CVE-2004-0958

Published: October 11, 2017 / Updated: June 9, 2025


Vulnerability identifier: #VU110519
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2004-0958
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to gain access to sensitive information.

php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via (1) GET, (2) POST, or (3) COOKIE GPC variables that end in an open bracket character, which causes PHP to calculate an incorrect string length.


Affected software

PHP

How to mitigate CVE-2004-0958

Install update from vendor's website.

PHP - update to 5.0.2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins