← Vulnerability feed

Vulnerability record · CVE-2007-4727 · published 12 September 2007

CVE-2007-4727: Lighttpd memory buffer overflow vulnerability

Lighttpd · Lighttpd

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."

6.8 CVSS 2.0 Medium EPSS 13% · top 3.8% CWE-119 · Memory buffer overflow
6.8CVSS 2.0 base score
13%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
36References
16 Jun 2026Last modified by NVD

Description

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."

AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://fedoranews.org/updates/FEDORA-2007-213.shtml
http://secunia.com/advisories/26732 Vendor Advisory
http://secunia.com/advisories/26794
http://secunia.com/advisories/26824
http://secunia.com/advisories/26997
http://secunia.com/advisories/27229
http://securityreason.com/securityalert/3127
http://secweb.se/en/advisories/lighttpd-fastcgi-remote-vulnerability/
http://trac.lighttpd.net/trac/changeset/1986
http://www.gentoo.org/security/en/glsa/glsa-200709-16.xml
http://www.lighttpd.net/assets/2007/9/9/lighttpd_sa_2007_12.txt
http://www.novell.com/linux/security/advisories/2007_20_sr.html
http://www.securityfocus.com/archive/1/479763/100/0/threaded
http://www.securityfocus.com/bid/25622
http://www.vupen.com/english/advisories/2007/3110
https://bugzilla.redhat.com/show_bug.cgi?id=284511
https://exchange.xforce.ibmcloud.com/vulnerabilities/36526
https://issues.rpath.com/browse/RPL-1715
http://fedoranews.org/updates/FEDORA-2007-213.shtml
http://secunia.com/advisories/26732 Vendor Advisory
http://secunia.com/advisories/26794
http://secunia.com/advisories/26824
http://secunia.com/advisories/26997
http://secunia.com/advisories/27229
http://securityreason.com/securityalert/3127
http://secweb.se/en/advisories/lighttpd-fastcgi-remote-vulnerability/
http://trac.lighttpd.net/trac/changeset/1986
http://www.gentoo.org/security/en/glsa/glsa-200709-16.xml
http://www.lighttpd.net/assets/2007/9/9/lighttpd_sa_2007_12.txt
http://www.novell.com/linux/security/advisories/2007_20_sr.html
http://www.securityfocus.com/archive/1/479763/100/0/threaded
http://www.securityfocus.com/bid/25622
http://www.vupen.com/english/advisories/2007/3110
https://bugzilla.redhat.com/show_bug.cgi?id=284511
https://exchange.xforce.ibmcloud.com/vulnerabilities/36526
https://issues.rpath.com/browse/RPL-1715

Track CVE-2007-4727 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2019-11072lighttpd signed integer overflow in URL normalization causes crashlighttpd before 1.4.54 has a signed integer overflow in burl_normalize_2F_to_slash_fix in burl.c, triggered by a malicious HTTP GET request such as m…EPSS 74%analysed9.8CVE-2014-2323lighttpd mod_mysql_vhost SQL injection via host namelighttpd before 1.4.35 contains a SQL injection flaw in mod_mysql_vhost.c, specifically in request_check_hostname, where the HTTP host name is passed…EPSS 63%analysed8.3CVE-2007-3949Lighttpd vulnerabilitymod_access.c in lighttpd 1.4.15 ignores trailing / (slash) characters in the URL, which allows remote attackers to bypass url.access-deny settings.EPSS 3.3%7.8CVE-2007-1870Lighttpd vulnerabilitylighttpd before 1.4.14 allows attackers to cause a denial of service (crash) via a request to a file whose mtime is 0, which results in a NULL pointe…EPSS 2.7%7.6CVE-2013-4559Lighttpd permissions and access controls vulnerabilitylighttpd before 1.4.33 does not check the return value of the (1) setuid, (2) setgid, or (3) setgroups functions, which might cause lighttpd to run a…EPSS 11%7.5CVE-2022-41556Lighttpd memory leak vulnerabilityA resource leak in gw_backend.c in lighttpd 1.4.56 through 1.4.66 could lead to a denial of service (connection-slot exhaustion) after a large amount…EPSS 2.9%7.5CVE-2022-37797Lighttpd null pointer dereference vulnerabilityIn lighttpd 1.4.65, mod_wstunnel does not initialize a handler function pointer if an invalid HTTP request (websocket handshake) is received. It lead…EPSS 2.5%7.5CVE-2022-30780Lighttpd header parsing typo enables remote denial of serviceLighttpd 1.4.56 through 1.4.58 contains a typo in connection_read_header_more in connections.c that disrupts multiple read operations on large header…EPSS 57%analysed

Source: NIST National Vulnerability Database (record CVE-2007-4727), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.