Debian Security Advisory

DSA-396-1 thttpd -- missing input sanitizing, wrong calculation

Date Reported:
29 Oct 2003
Affected Packages:
Security database references:
In the Bugtraq database (at SecurityFocus): BugTraq ID 8906, BugTraq ID 8924.
In Mitre's CVE dictionary: CVE-2002-1562, CVE-2003-0899.
More information:

Several vulnerabilities have been discovered in thttpd, a tiny HTTP server.

The Common Vulnerabilities and Exposures project identifies the following vulnerabilities:

  • CAN-2002-1562: Information leak

    Marcus Breiing discovered that if thttpd it is used for virtual hosting, and an attacker supplies a specially crafted “Host:” header with a pathname instead of a hostname, thttpd will reveal information about the host system. Hence, an attacker can browse the entire disk.

  • CAN-2003-0899: Arbitrary code execution

    Joel Söderberg and Christer Öberg discovered a remote overflow which allows an attacker to partially overwrite the EBP register and hence execute arbitrary code.

For the stable distribution (woody) these problems have been fixed in version 2.21b-11.2.

For the unstable distribution (sid) these problems have been fixed in version 2.23beta1-2.3.

We recommend that you upgrade your thttpd package immediately.

Fixed in:

Debian GNU/Linux 3.0 (woody)

Intel IA-32:
Intel IA-64:
Motorola 680x0:
Big endian MIPS:
Little endian MIPS:
IBM S/390:
Sun Sparc:

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