Debian Security Advisory

DSA-115-1 php -- broken boundary check and more

Date Reported:
02 Mar 2002
Affected Packages:
php3, php4
Security database references:
In the Bugtraq database (at SecurityFocus): BugTraq ID 4183.
In Mitre's CVE dictionary: CVE-2002-0081.
CERT's vulnerabilities, advisories and incident notes: CA-2002-05, VU#297363.
More information:

Stefan Esser, who is also a member of the PHP team, found several flaws in the way PHP handles multipart/form-data POST requests (as described in RFC1867) known as POST fileuploads. Each of the flaws could allow an attacker to execute arbitrary code on the victim's system.

For PHP3 flaws contain a broken boundary check and an arbitrary heap overflow. For PHP4 they consist of a broken boundary check and a heap off by one error.

For the stable release of Debian these problems are fixed in version 3.0.18-0potato1.1 of PHP3 and version 4.0.3pl1-0potato3 of PHP4.

For the unstable and testing release of Debian these problems are fixed in version 3.0.18-22 of PHP3 and version 4.1.2-1 of PHP4.

There is no PHP4 in the stable and unstable distribution for the arm architecture due to a compiler error.

We recommend that you upgrade your PHP packages immediately.

Fixed in:

Debian GNU/Linux 2.2 (potato)

Architecture-independent component:
Intel ia32:
Motorola 680x0:
Sun Sparc:

MD5 checksums of the listed files are available in the original advisory.