CVE-2012-0840
tables/apr_hash.c in the Apache Portable Runtime (APR) library through 1.4.5 computes hash values...
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.
Exploit likelihood
What each source reports
NVD Score used
5.0
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.
- Record
CVE-2012-0840- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-20
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2012-0840- Updated
- 2026-11-02
EUVDEUVD-2012-0865 No score
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.
- Record
EUVD-2012-0865- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-x7rw-r7fp-j64f No score
tables/apr_hash.c in the Apache Portable Runtime (APR) library through 1.4.5 computes hash values...
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.
- Record
GHSA-x7rw-r7fp-j64f- Weakness
- CWE-20
- Updated
- 2026-11-02
OSVBELL-CVE-2012-0840
5.0
CVE-2012-0840 does not affect BellSoft software
- Record
BELL-CVE-2012-0840- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2012-0840- Updated
- 2026-11-02
OSVDEBIAN-CVE-2012-0840 No score
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.
- Record
DEBIAN-CVE-2012-0840- Updated
- 2026-11-02
Affected products
Affected packages
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Apache APR - Hash Collision Denial of Service | 2012-01-05 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2012-0840 is a medium vulnerability (CVSS 5.0) in Apache Portable Runtime, published February 10, 2012. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 42.1%, the 98th percentile. Fixed in apr 1.4.6-1.
References
mail-archives.apache.org/mod_mbox/apr-commits/201201.mbox/%3C20120115003715.071D423888FD%40eris.apache.org%3E
exchange.xforce.ibmcloud.com/vulnerabilities/73096
openwall.com/lists/oss-security/2012/02/08/3
mandriva.com/security/advisories?name=MDVSA-2012:019
secunia.com/advisories/47862
svn.apache.org/viewvc?rev=1231605&view=rev
Show 9 moreShow less
mail-archive.com/dev%40apr.apache.org/msg24439.html
mail-archive.com/dev%40apr.apache.org/msg24472.html
openwall.com/lists/oss-security/2012/02/09/1
mail-archive.com/dev%40apr.apache.org/msg24473.html
nvd.nist.gov/vuln/detail/CVE-2012-0840
mail-archives.apache.org/mod_mbox/apr-commits/201201.mbox/%[email protected]%3E
github.com/advisories/GHSA-x7rw-r7fp-j64f
docs.bell-sw.com/security/cves/CVE-2012-0840
security-tracker.debian.org/tracker/CVE-2012-0840