Input validation error in PHP - CVE-2005-3389

 

Input validation error in PHP - CVE-2005-3389

Published: October 30, 2018 / Updated: June 8, 2025


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

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to corrupt data.

The parse_str function in PHP 4.x up to 4.4.0 and 5.x up to 5.0.5, when called with only one parameter, allows remote attackers to enable the register_globals directive via inputs that cause a request to be terminated due to the memory_limit setting, which causes PHP to set an internal flag that enables register_globals and allows attackers to exploit vulnerabilities in PHP applications that would otherwise be protected.


Affected software

PHP
Gentoo Linux
dev-php/php
dev-php/php-cgi

How to mitigate CVE-2005-3389

Install update from vendor's website.

PHP - addressed in versions 4.4.0, 4.10
dev-php/php - update to 4.4.0-r4
dev-php/php-cgi - update to 4.4.0-r8

External References

Related Security Bulletins