Description
tables/apr_hash.c in the Apache Portable Runtime (APR) library through 1.4.5 computes hash values without restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table.
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 | apr | 1.4.6-1 | — |
| Debian 13 | apr | 1.4.6-1 | — |
| Debian 12 | apr | 1.4.6-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 APR - Hash Collision Denial of Service EDB-36669 · dos · Jan 5, 2012 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- [apr-commits] 20120115 svn commit: r1231605 - /apr/apr/trunk/tables/apr_hash.c mailing-list
- apacheapr-hash-dos(73096) vdb-entry
- [oss-security] 20120208 CVE request: apr - Hash DoS vulnerability mailing-list
- MDVSA-2012:019 vendor-advisory
- 47862 third-party-advisory
- http://svn.apache.org/viewvc?rev=1231605&view=rev
- [dev] 20120105 Hash collision vectors in APR? mailing-list
- [dev] 20120113 Re: Hash collision vectors in APR? mailing-list
- [oss-security] 20120208 Re: CVE request: apr - Hash DoS vulnerability mailing-list
- [dev] 20120114 Re: Hash collision vectors in APR? mailing-list