Skip to content
Noroxi
NVD / CVE Program· CNA redhat

CVE-2012-0840: tables/apr_hash.c in the Apache Portable Runtime (APR) library through 1.4.5 computes hash values without restricting the ability to trigger…

MediumCVSS 5.0 · v2.0—Proof of concept Fix available

Noroxi assessment

Priority: Monitor (action score 33/100)

  • Public proof-of-concept code exists (Exploit-DB); there is no record of exploitation in the wild.
  • Probability of exploitation in the next 30 days: 42.1% (FIRST EPSS); higher than 98.7% of all records.
  • No special conditions are required; it is repeatable.
  • Fixed version: apr (Debian:12) 1.4.6-1.

Low priority for now. Upgrade to apr (Debian:12) 1.4.6-1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Feb 10, 2012
Updated
Jun 16, 2026
EPSS
42.1% · 98th percentile

Report tools

JSON

Action score

33

Monitor

Low priority for now.

CVSS
20 / 40 · 5.0 / 10
CISA KEV
0 / 30 · Not listed
EPSS
13 / 30 · 42.1%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Proof of concept exists, no weaponized module
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2012-0840

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
apacheportable runtime

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • apache portable runtimeup to 1.4.5 inclusive
  • apache portable runtime0.9.1
  • apache portable runtime0.9.16-dev
  • apache portable runtime0.9.2
  • apache portable runtime0.9.2-dev
  • apache portable runtime0.9.3
  • apache portable runtime0.9.3-dev
  • apache portable runtime0.9.4

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12aprbefore 1.4.6-11.4.6-1

Other highest-scoring records for the same primary product.

  • CVE-2022-28331Apache Portable Runtime (APR): Windows out-of-bounds write in apr_socket_sendv function
    39Monitor
  • CVE-2022-24963Apache Portable Runtime (APR): out-of-bound writes in the apr_encode family of functions
    39Monitor
  • CVE-2017-12613When apr_time_exp*() or apr_os_exp_time*() functions are invoked with an invalid month field value in Apache Portable Runtime APR 1.6.2 and…
    29Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2011-0419May 16, 2011 · Stack consumption vulnerability in the fnmatch implementation in apr_fnmatch.c in the Apache Portable Runtime (APR) library before 1.4.3…
    26Monitor
  • Later →CVE-2021-35940Aug 23, 2021 · Regression of CVE-2017-12613
    28Monitor
  • Later →CVE-2023-49582Aug 26, 2024 · Apache Portable Runtime (APR): Unexpected lax shared memory permissions
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:apr1.4.6-1 · Debian:12Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Exploit-DB entry ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entrydos2012-01-05

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. First PoC-37 d
  2. Published
  3. TodayNov 16, 2026+5393 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Not on record for this CVE: patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

References

All records