Input validation error in PHP - CVE-2006-2660

 

Input validation error in PHP - CVE-2006-2660

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


Vulnerability identifier: #VU110482
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2006-2660
CWE-ID: CWE-20
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to corrupt data.

Buffer consumption vulnerability in the tempnam function in PHP 5.1.4 and 4.x before 4.4.3 allows local users to bypass restrictions and create PHP files with fixed names in other directories via a pathname argument longer than MAXPATHLEN, which prevents a unique string from being appended to the filename.


Affected software

PHP

How to mitigate CVE-2006-2660

Install update from vendor's website.

PHP - addressed in versions 4.0.6, 4.4.4, 4.10, 5.1.5

External References

Related Security Bulletins