Description
mod_cgi in Apache 2.0.39 and 2.0.40 allows local users and possibly remote attackers to cause a denial of service (hang and memory consumption) by causing a CGI script to send a large amount of data to stderr, which results in a read/write deadlock between httpd and the CGI script.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | apache2 | 2.0.42-1 | — |
| Debian 13 | apache2 | 2.0.42-1 | — |
| Debian 12 | apache2 | 2.0.42-1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Apache 2.0.39/40 - Oversized STDERR Buffer Denial of Service EDB-21854 · dos · Sep 24, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 1007823 vdb-entry
- 20020923 Apache 2.0.(39|40) DOS (PHP!) mailing-list
- http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/generators/mod_cgi.c?r1=1.148.2.7&r2=1.148.2.8
- 8725 vdb-entry
- http://issues.apache.org/bugzilla/show_bug.cgi?id=10515
- apache-stderr-dos(10200) vdb-entry
- 5787 vdb-entry
- [apache-httpd-dev] 20020925 CGI bucket needed mailing-list
- http://issues.apache.org/bugzilla/show_bug.cgi?id=22030