Every CVE Search/ Get API key

CVE-2012-0840

tables/apr_hash.c in the Apache Portable Runtime (APR) library through 1.4.5 computes hash values...

5.0 MediumPublic exploitFix available

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

42.1%Up 11.6 points since Feb 4, 2022
90%50%10%1%

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 MediumAV: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 MediumAV: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

Affected packages
PackageAffectedFixed
apr
Debian:12
before 1.4.6-1
1.4.6-1
apr
Debian:13
before 1.4.6-1
1.4.6-1
apr
Debian:14
before 1.4.6-1
1.4.6-1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Exploit-DBApache APR - Hash Collision Denial of Service2012-01-05

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 9 moreShow less
MoveEnter Open