Information disclosure in PHP - CVE-2007-5899

 

Information disclosure in PHP - CVE-2007-5899

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


Vulnerability identifier: #VU110352
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-2007-5899
CWE-ID: CWE-200
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The output_add_rewrite_var function in PHP before 5.2.5 rewrites local forms in which the ACTION attribute references a non-local URL, which allows remote attackers to obtain potentially sensitive information by reading the requests for this URL, as demonstrated by a rewritten form containing a local session ID.


Affected software

PHP
Ubuntu
php5-cgi (Ubuntu package)
php5-cli (Ubuntu package)
php5-curl (Ubuntu package)
libapache2-mod-php5 (Ubuntu package)

How to mitigate CVE-2007-5899

Install update from vendor's website.

PHP - update to 5.2.5
php5-cgi (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.10, 5.1.2-1ubuntu3.12, 5.1.6-1ubuntu2.7, 5.2.1-0ubuntu1.5, 5.2.1-0ubuntu1.6, 5.2.3-1ubuntu6.1, 5.2.3-1ubuntu6.4, 5.2.4-2ubuntu5.3
php5-cli (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.10, 5.1.2-1ubuntu3.12, 5.1.6-1ubuntu2.7, 5.2.1-0ubuntu1.5, 5.2.1-0ubuntu1.6, 5.2.3-1ubuntu6.1, 5.2.3-1ubuntu6.4, 5.2.4-2ubuntu5.3
php5-curl (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.12, 5.2.1-0ubuntu1.6, 5.2.3-1ubuntu6.4, 5.2.4-2ubuntu5.3
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.10, 5.1.2-1ubuntu3.12, 5.1.6-1ubuntu2.7, 5.2.1-0ubuntu1.5, 5.2.1-0ubuntu1.6, 5.2.3-1ubuntu6.1, 5.2.3-1ubuntu6.4, 5.2.4-2ubuntu5.3

External References

Related Security Bulletins