Input validation error in PHP - CVE-2009-2687

 

Input validation error in PHP - CVE-2009-2687

Published: January 19, 2023 / Updated: June 8, 2025


Vulnerability identifier: #VU110326
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2009-2687
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 perform service disruption.

The exif_read_data function in the Exif module in PHP before 5.2.10 allows remote attackers to cause a denial of service (crash) via a malformed JPEG image with invalid offset fields, a different issue than CVE-2005-3353.


Affected software

PHP
Debian Linux
Ubuntu
php5-cli (Ubuntu package)
php5-cgi (Ubuntu package)
php5 (Debian package)

How to mitigate CVE-2009-2687

Install update from vendor's website.

PHP - update to 5.2.10
php5-cli (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.15, 5.2.4-2ubuntu5.7, 5.2.6-2ubuntu4.3, 5.2.6.dfsg.1-3ubuntu4.2
php5-cgi (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.15, 5.2.4-2ubuntu5.7, 5.2.6-2ubuntu4.3, 5.2.6.dfsg.1-3ubuntu4.2
php5 (Debian package) - addressed in versions 5.2.0+dfsg-8+etch16, 5.2.6.dfsg.1-1+lenny4

External References

Related Security Bulletins