Gentoo Logo

Lighttpd: Buffer overflow


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200709-16 / lighttpd
Release Date September 27, 2007
Latest Revision September 27, 2007: 01
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
www-servers/lighttpd < 1.4.18 >= 1.4.18 All supported architectures

Related bugreports: #191912


Lighttpd is vulnerable to the remote execution of arbitrary code.

2.  Impact Information


Lighttpd is a lightweight HTTP web server.


Mattias Bengtsson and Philip Olausson have discovered a buffer overflow vulnerability in the function fcgi_env_add() in the file mod_fastcgi.c when processing overly long HTTP headers.


A remote attacker could send a specially crafted request to the vulnerable Lighttpd server, resulting in the remote execution of arbitrary code with privileges of the user running the web server. Note that mod_fastcgi is disabled in Gentoo's default configuration.

3.  Resolution Information


Edit the file /etc/lighttpd/lighttpd.conf and comment the following line: "include mod_fastcgi.conf"


All Lighttpd users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=www-servers/lighttpd-1.4.18"

4.  References


Page updated September 27, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.