Ubuntu 4.10 : php4 vulnerabilities (USN-112-1)

High Nessus Plugin ID 20499


The remote Ubuntu host is missing one or more security-related patches.


An integer overflow was discovered in the exif_process_IFD_TAG() function in PHP4's EXIF module. EXIF tags with a specially crafted 'Image File Directory' (IFD) tag caused a buffer overflow which could have been exploited to execute arbitrary code with the privileges of the PHP4 server. (CAN-2005-1042)

The same module also contained a Denial of Service vulnerability. EXIF headers with a large IFD nesting level caused an unbound recursion which would eventually overflow the stack and cause the executed program to crash. (CAN-2005-1043)

In web applications that automatically process EXIF tags of uploaded images, both vulnerabilities could be exploited remotely.

Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.


Update the affected packages.

Plugin Details

Severity: High

ID: 20499

File Name: ubuntu_USN-112-1.nasl

Version: $Revision: 1.12 $

Type: local

Agent: unix

Published: 2006/01/15

Modified: 2016/05/27

Dependencies: 12634

Risk Information

Risk Factor: High


Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:canonical:ubuntu_linux:libapache2-mod-php4, p-cpe:/a:canonical:ubuntu_linux:php4, p-cpe:/a:canonical:ubuntu_linux:php4-cgi, p-cpe:/a:canonical:ubuntu_linux:php4-curl, p-cpe:/a:canonical:ubuntu_linux:php4-dev, p-cpe:/a:canonical:ubuntu_linux:php4-domxml, p-cpe:/a:canonical:ubuntu_linux:php4-gd, p-cpe:/a:canonical:ubuntu_linux:php4-ldap, p-cpe:/a:canonical:ubuntu_linux:php4-mcal, p-cpe:/a:canonical:ubuntu_linux:php4-mhash, p-cpe:/a:canonical:ubuntu_linux:php4-mysql, p-cpe:/a:canonical:ubuntu_linux:php4-odbc, p-cpe:/a:canonical:ubuntu_linux:php4-pear, p-cpe:/a:canonical:ubuntu_linux:php4-recode, p-cpe:/a:canonical:ubuntu_linux:php4-snmp, p-cpe:/a:canonical:ubuntu_linux:php4-sybase, p-cpe:/a:canonical:ubuntu_linux:php4-xslt, cpe:/o:canonical:ubuntu_linux:4.10

Required KB Items: Host/cpu, Host/Ubuntu, Host/Ubuntu/release, Host/Debian/dpkg-l

Patch Publication Date: 2005/04/14

Reference Information

CVE: CVE-2005-1042, CVE-2005-1043

USN: 112-1