CVE-2012-0840 Denial of service in n/a
Attackers can cause denial of service via CPU consumption by triggering predictable hash collisions in the Apache Portable Runtime library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-0840?
CVE-2012-0840 is a medium-severity denial of service vulnerability in n/a, published on 10 Feb 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-20
Which versions are affected by CVE-2012-0840?
It affects 1 product.
Products include Apache Portable Runtime.
How do I fix CVE-2012-0840?
Upgrade to a fixed version.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2012-0840 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-0840 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in n/a
- CVE-2022-24963 Apache Portable Runtime (APR): out-of-bound writes in the apr_encode family of functions
- CVE-2022-28331 Apache Portable Runtime (APR): Windows out-of-bounds write in apr_socket_sendv function
- CVE-2021-35940 Regression of CVE-2017-12613
- CVE-2017-12613 Information disclosure in Apache Portable Runtime
- CVE-2023-49582 Apache Portable Runtime (APR): Unexpected lax shared memory permissions
Sources
Also known as DEBIAN-CVE-2012-0840, GHSA-x7rw-r7fp-j64f.