Description
Buffer overflow in htdigest in Apache 2.0.52 may allow attackers to execute arbitrary code via a long realm argument. NOTE: since htdigest is normally only locally accessible and not setuid or setgid, there are few attack vectors which would lead to an escalation of privileges, unless htdigest is executed from a CGI program. Therefore this may not be a vulnerability.
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.54-3 | — |
| Debian 13 | apache2 | 2.0.54-3 | — |
| Debian 12 | apache2 | 2.0.54-3 | — |
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 2
- Apache 1.3.x - HTDigest Realm Command Line Argument Buffer Overflow (2) EDB-25625 · remote · May 11, 2005 · verified
- Apache 1.3.x - HTDigest Realm Command Line Argument Buffer Overflow (1) EDB-25624 · remote · May 6, 2005 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- APPLE-SA-2005-05-03 vendor-advisory
- http://www.lucaercoli.it/advs/htdigest.txt
- APPLE-SA-2005-08-15 vendor-advisory
- 12848 vdb-entry
- http://www.securiteam.com/unixfocus/5EP061FEKC.html
- APPLE-SA-2005-08-17 vendor-advisory
- 13537 vdb-entry