Skip to content
WatchlistMedium

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

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
ProductAffected versionsFixed in
Portable RuntimeApache0.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.51.4.5
aprdebianSee advisory1.4.6-1
rootio-aprrootioSee advisory1.4.6-1

Patched Releases

Portable Runtime

1.4.5

apr

1.4.6-1

rootio-apr

1.4.6-1

Timeline

  1. Publicly disclosed

    Feb 10, 2012

  2. Last updated

    Aug 4, 2026

Weakness Type

  • CWE-20 Improper Input Validation

FAQ

Common Questions.

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

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.