lighttpd — security advisory
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."
- Products
- lighttpd
- Affected versions
- Not specified
- Fixed versions
- 1.4.18-1
- CVEs
- CVE-2007-4727
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 15:55 UTC · Revision 1
Source evidence
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."
osv:DEBIAN-CVE-2007-4727
lighttpd
Fixed versions: 1.4.18-1
lighttpd
Fixed versions: 1.4.18-1
lighttpd
Fixed versions: 1.4.18-1
Complete source record
{
"id": "7e0a78e4bedeec4d40e1c06d1d3130c9284129e7f2b88cad07949d77fa68ec2e",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2007-4727",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2007-4727",
"summary": "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.\"",
"evidence": "osv:DEBIAN-CVE-2007-4727",
"products": [
{
"name": {
"value": "lighttpd",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.4.18-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "lighttpd",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.4.18-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "lighttpd",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.4.18-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "DEBIAN-CVE-2007-4727",
"aliases": [
"DEBIAN-CVE-2007-4727"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.18-1"
}
]
}
],
"package": {
"name": "lighttpd",
"purl": "pkg:deb/debian/lighttpd?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2007-4727.json"
},
"ecosystem_specific": {
"urgency": "medium"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.18-1"
}
]
}
],
"package": {
"name": "lighttpd",
"purl": "pkg:deb/debian/lighttpd?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2007-4727.json"
},
"ecosystem_specific": {
"urgency": "medium"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.18-1"
}
]
}
],
"package": {
"name": "lighttpd",
"purl": "pkg:deb/debian/lighttpd?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2007-4727.json"
},
"ecosystem_specific": {
"urgency": "medium"
}
}
],
"modified": "2026-10-21T17:47:45.793057808Z",
"provider": "osv",
"upstream": [
"CVE-2007-4727"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2007-4727"
]
},
"related_cves": [
{
"value": "CVE-2007-4727",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 398578,
"published_at": "2007-09-12T19:17:00+00:00"
}