CVE-2012-0840Portable Runtime Vulnerability
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…
Published Feb 10, 2012 · Updated Aug 4, 2026 · Also known as DEBIAN-CVE-2012-0840
Key Facts
Routine patching- CVE-2012-0840 is a medium-severity vulnerability (CVSS 5.0 v2) affecting Portable Runtime (Apache), apr (debian), rootio-apr.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 42% probability of exploitation in the next 30 days.
- Fixed versions are available, including Portable Runtime 1.4.5, apr 1.4.6-1, rootio-apr 1.4.6-1.
- Brandefense priority: routine patching, as no exploitation is known and its severity is moderate or low.
Scores
CVSS v2
5.0
AV:N/AC:L/Au:N/C:N/I:N/A:P
EPSS (30-day exploit likelihood)
42%
Higher than 98.6% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
35/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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.
Affected Products
47 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| Portable RuntimeApache | 0.9.1, 0.9.16-dev, 0.9.2, 0.9.2-dev, 0.9.3, 0.9.3-dev, 0.9.4, 0.9.5 | 1.4.5 |
| aprdebian | See advisory | 1.4.6-1 |
| rootio-aprrootio | See advisory | 1.4.6-1 |
Patched Releases
Portable Runtime
1.4.5
apr
1.4.6-1
rootio-apr
1.4.6-1
Timeline
Publicly disclosed
Feb 10, 2012
Last updated
Aug 4, 2026
Weakness Type
- CWE-20 Improper Input Validation
References
- advisorysecurity-tracker.debian.org · CVE-2012-0840
- advisory47862
- patchsvn.apache.org · viewvc
- exploitExploitDB-36669
- other[apr-commits] 20120115 svn commit: r1231605 - /apr/apr/trunk/tables/apr_hash.c
FAQ
Common Questions.
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 tab…
Affected: Portable Runtime (Apache) versions 0.9.1, 0.9.16-dev, 0.9.2, 0.9.2-dev, 0.9.3, 0.9.3-dev, 0.9.4, 0.9.5; apr (debian); rootio-apr. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Portable Runtime 1.4.5, apr 1.4.6-1, rootio-apr 1.4.6-1.
Brandefense priority: routine patching, as no exploitation is known and its severity is moderate or low.
Is CVE-2012-0840 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo