CVE-2012-0840 Denial of service in n/a

Medium 5.0 Published Updated

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.

Sources

Also known as DEBIAN-CVE-2012-0840, GHSA-x7rw-r7fp-j64f.

Is CVE-2012-0840 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free