{"id":"CVE-2007-4727","aliases":["DEBIAN-CVE-2007-4727","DSA-1362-1","EUVD-2007-4708","GHSA-8fr6-p7rj-wmfr"],"status":"published","title":"Buffer overflow in the fcgi_env_add function in mod_proxy_backend_fastcgi.c in the mod_fastcgi...","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.\"","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.12895,"percentile":0.96329,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2007-08-29T00:00:00Z","modified":"2026-10-21T17:47:45Z","fixes":[{"ecosystem":"Debian:12","package":"lighttpd","fixed_in":["1.4.18-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"lighttpd","fixed_in":["1.4.18-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"lighttpd","fixed_in":["1.4.18-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"lighttpd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.18-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"lighttpd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.18-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"lighttpd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.18-1"}]}]},{"source":"osv","ecosystem":"Debian:4.0","package":"lighttpd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.13-4etch4"}]}],"versions":["1.4.13-4","1.4.13-4etch1","1.4.13-4etch2","1.4.13-4etch3"],"bundled":5}],"products":[{"vendor":"lighttpd","product":"lighttpd"}],"references":[{"url":"https://issues.rpath.com/browse/RPL-1715","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.securityfocus.com/archive/1/479763/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"http://fedoranews.org/updates/FEDORA-2007-213.shtml","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://secunia.com/advisories/26732","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200709-16.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","web"]},{"url":"http://secweb.se/en/advisories/lighttpd-fastcgi-remote-vulnerability/","tags":["x_refsource_MISC","x_transferred","advisory"]},{"url":"http://www.securityfocus.com/bid/25622","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=284511","tags":["x_refsource_MISC","x_transferred","report"]},{"url":"http://www.lighttpd.net/assets/2007/9/9/lighttpd_sa_2007_12.txt","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36526","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://securityreason.com/securityalert/3127","tags":["third-party-advisory","x_refsource_SREASON","x_transferred","web"]},{"url":"http://secunia.com/advisories/26997","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://trac.lighttpd.net/trac/changeset/1986","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://secunia.com/advisories/26824","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.vupen.com/english/advisories/2007/3110","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/27229","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/26794","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.novell.com/linux/security/advisories/2007_20_sr.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4727"},{"url":"http://secweb.se/en/advisories/lighttpd-fastcgi-remote-vulnerability"},{"url":"https://github.com/advisories/GHSA-8fr6-p7rj-wmfr"},{"url":"https://security-tracker.debian.org/tracker/CVE-2007-4727","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2007-4727","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.\"","status":"published","published":"2007-09-12T19:00:00Z","modified":"2024-08-07T15:08:33.521Z","updated_at":"2026-11-02T13:33:19.093583Z"}],"euvd":[{"id":"EUVD-2007-4708","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.\"","status":"published","published":"2007-09-12T19:00:00Z","modified":"2024-08-07T15:08:33Z","updated_at":"2026-11-03T01:16:20.177134Z"}],"ghsa":[{"id":"GHSA-8fr6-p7rj-wmfr","title":"Buffer overflow in the fcgi_env_add function in mod_proxy_backend_fastcgi.c in the mod_fastcgi...","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.\"","status":"published","published":"2022-05-01T18:26:30Z","modified":"2025-04-09T03:46:08Z","cwes":["CWE-119"],"updated_at":"2026-11-02T15:00:55.004058Z"}],"nvd":[{"id":"CVE-2007-4727","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.\"","status":"published","published":"2007-09-12T19:17:00Z","modified":"2026-06-16T22:44:39.827Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:01:21.141213Z"}],"osv":[{"id":"CVE-2007-4727","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.\"","status":"published","published":"2007-09-12T19:17:00Z","modified":"2026-04-10T03:39:12.988125Z","updated_at":"2026-11-02T15:43:57.178433Z"},{"id":"DEBIAN-CVE-2007-4727","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.\"","status":"published","published":"2007-09-12T19:17:00Z","modified":"2026-10-21T17:47:45.793057808Z","updated_at":"2026-11-02T15:45:23.411908Z"},{"id":"DSA-1362-1","title":"lighttpd - several vulnerabilities","status":"published","published":"2007-08-29T00:00:00Z","modified":"2026-03-09T01:01:43.753103Z","updated_at":"2026-11-02T15:46:14.285228Z"}]}}
