CVE-2012-0840

medium
Published 2012-02-10 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
6.0

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-36669 dos linux verified
Moritz Muehlenhoff ยท 2012-01-05

Apache APR - Hash Collision Denial of Service

Source code queued for fetch โ€” refresh in a moment.

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed1.4.6-1
debian debianbullseyefixed1.4.6-1
debian debianforkyfixed1.4.6-1
debian debiansidfixed1.4.6-1
debian debiantrixiefixed1.4.6-1

Application impact

VendorProductVersionsFixed
apache apacheportable_runtime{"endIncluding":"1.4.5"}
apache apacheportable_runtime0.9.1
apache apacheportable_runtime0.9.2
apache apacheportable_runtime0.9.2-dev
apache apacheportable_runtime0.9.3
apache apacheportable_runtime0.9.3-dev
apache apacheportable_runtime0.9.4
apache apacheportable_runtime0.9.5
apache apacheportable_runtime0.9.6
apache apacheportable_runtime0.9.7
apache apacheportable_runtime0.9.7-dev
apache apacheportable_runtime0.9.8
apache apacheportable_runtime0.9.9
apache apacheportable_runtime0.9.16-dev
apache apacheportable_runtime1.3.0
apache apacheportable_runtime1.3.1
apache apacheportable_runtime1.3.2
apache apacheportable_runtime1.3.3
apache apacheportable_runtime1.3.4
apache apacheportable_runtime1.3.4-dev
apache apacheportable_runtime1.3.5
apache apacheportable_runtime1.3.6
apache apacheportable_runtime1.3.6-dev
apache apacheportable_runtime1.3.7
apache apacheportable_runtime1.3.8
apache apacheportable_runtime1.3.9
apache apacheportable_runtime1.3.10
apache apacheportable_runtime1.3.11
apache apacheportable_runtime1.3.12
apache apacheportable_runtime1.3.13
apache apacheportable_runtime1.4.0
apache apacheportable_runtime1.4.1
apache apacheportable_runtime1.4.2
apache apacheportable_runtime1.4.3
apache apacheportable_runtime1.4.4

References

CWEs

CWE-20

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.