lighttpd mod_fastcgi code execution

lighttpd-modfastcgi-code-execution (36526) The risk level is classified as HighHigh Risk

Description:

lighttpd could allow a remote attacker to execute arbitrary code on the system, caused by a header overflow in the mod_fastcgi extension. By sending a specially-crafted request with an overly large contentLength value, an attacker could exploit this vulnerability to execute arbitrary code on the system.

Platforms Affected:

  • Debian, Debian Linux 4.0
  • Gentoo, Linux
  • lighttpd, lighttpd 1.4.17
  • SuSE, SuSE Linux

Remedy:

Upgrade to the latest version of Lighttpd (1.4.18 or later), available from the Lighttpd Web site. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

Consequences:

Gain Access

References:

  • lighttpd Web site, lighttpd fly light at http://www.lighttpd.net/.
  • Secweb Web site, Lighttpd FastCGI Remote Vulnerability at http://secweb.se/en/advisories/lighttpd-fastcgi-remote-vulnerability/.
  • BID-25622: Lighttpd Mod_FastCGI Request Headers Remote Header Overflow Vulnerability
  • CVE-2007-4727: Buffer overflow in the fcgi_env_add function in mod_proxy_backend_fastcgi.c in the mod_fastcgi extension in lighttpd before 1.4.18 allows remote attackers to overwrite arbitrary CGI variables and execute arbitrary code via an HTTP request with a long content length, as demonstrated by overwriting the SCRIPT_FILENAME variable, aka a header overflow.
  • DSA-1362: lighttpd -- several vulnerabilities
  • GLSA-200709-16: Lighttpd: Buffer overflow
  • GLSA-200710-02: PHP: Multiple vulnerabilities
  • SA26732: lighttpd mod_fastcgi PHP Header Overflow
  • SUSE-SR:2007:020: SUSE Security Summary Report
  • VUPEN/ADV-2007-3110: Lighttpd mod_fastcgi Headers Handling Remote Code Execution Vulnerability

Reported:

Sep 09, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page