CVE-2007-4727

CVE-2007-4727 is a medium-severity vulnerability in Lighttpd with a CVSS 2.0 base score of 6.8. Its EPSS exploit-prediction score of 13% places it in the 96th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-119.

Key facts

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

Frequently asked questions

What is 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."
How severe is CVE-2007-4727?
CVE-2007-4727 has a CVSS 2.0 base score of 6.8, rated medium severity.
Is CVE-2007-4727 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 13% (96th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2007-4727?
CVE-2007-4727 affects Lighttpd. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2007-4727?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2007-4727 published?
CVE-2007-4727 was published on 2007-09-12 and last updated on 2026-06-16.

References

Affected products (1)

More vulnerabilities in Lighttpd

All CVEs affecting Lighttpd →

Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities

Browse all CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities →