Executive Summary

Summary
TitleLighttpd: Buffer overflow
Informations
NameGLSA-200709-16First vendor Publication2007-09-27
VendorGentooLast vendor Modification2007-09-27
Severity (Vendor) HighRevisionN/A

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:N/C:P/I:P/A:P)
Cvss Base Score6.8Attack RangeNetwork
Cvss Impact Score6.4Attack ComplexityMedium
Cvss Expoit Score8.6AuthentificationNone Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

Lighttpd is vulnerable to the remote execution of arbitrary code.

Background

Lighttpd is a lightweight HTTP web server.

Description

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.

Impact

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.

Workaround

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

Resolution

All Lighttpd users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=www-servers/lighttpd-1.4.18"

References

[ 1 ] CVE-2007-4727 : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4727

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200709-16.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200709-16.xml

CWE : Common Weakness Enumeration

idName
CWE-119Failure to Constrain Operations within the Bounds of a Memory Buffer

CPE : Common Platform Enumeration

TypeDescriptionCount
Application1

Open Source Vulnerability Database (OSVDB)

idDescription
36933lighttpd mod_fastcgi HTTP Request Header Overflow