Input validation error in PHP - CVE-2007-4658

 

Input validation error in PHP - CVE-2007-4658

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


Vulnerability identifier: #VU110369
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-4658
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 read and manipulate data.

The money_format function in PHP 5 before 5.2.4, and PHP 4 before 4.4.8, permits multiple (1) %i and (2) %n tokens, which has unknown impact and attack vectors, possibly related to a format string vulnerability.


Affected software

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

How to mitigate CVE-2007-4658

Install update from vendor's website.

PHP - addressed in versions 4.4.8, 4.10, 5.2.15
php5-cli (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.10, 5.1.6-1ubuntu2.7, 5.2.1-0ubuntu1.5, 5.2.3-1ubuntu6.1
php5-cgi (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.10, 5.1.6-1ubuntu2.7, 5.2.1-0ubuntu1.5, 5.2.3-1ubuntu6.1
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.10, 5.1.6-1ubuntu2.7, 5.2.1-0ubuntu1.5, 5.2.3-1ubuntu6.1

External References

Related Security Bulletins