Input validation error in PHP - CVE-2004-1065
Published: October 30, 2018 / Updated: June 8, 2025
Vulnerability identifier: #VU110517
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2004-1065
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 execute arbitrary code.
Buffer overflow in the exif_read_data function in PHP before 4.3.10 and PHP 5.x up to 5.0.2 allows remote attackers to execute arbitrary code via a long section name in an image file.
Affected software
PHP
Gentoo Linux
dev-php/php
dev-php/php-cgi
Gentoo Linux
dev-php/php
dev-php/php-cgi
How to mitigate CVE-2004-1065
Install update from vendor's website.
PHP - addressed in versions 4.3.10, 4.10, 5.0.3
dev-php/php - update to 4.3.10
dev-php/php-cgi - update to 4.3.10
dev-php/php - update to 4.3.10
dev-php/php-cgi - update to 4.3.10
External References
- http://msgs.securepoint.com/cgi-bin/get/bugtraq0412/157.html
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:151
- http://www.novell.com/linux/security/advisories/2005_02_php4_mod_php4.html
- http://www.php.net/release_4_3_10.php
- http://www.redhat.com/support/errata/RHSA-2004-687.html
- http://www.redhat.com/support/errata/RHSA-2005-032.html
- http://www.securityfocus.com/advisories/9028
- https://bugzilla.fedora.us/show_bug.cgi?id=2344
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18517
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10877