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…
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
- CWE
- CWE-20
Report tools
Action score
33
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.
Is your version affected? Check itNoroxi 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 helpAffected 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.
| Vendor | Product | CPE |
|---|---|---|
| apache | portable runtime | cpe:2.3:a:apache:portable_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
+12 more rows
- apache portable runtime0.9.5
- apache portable runtime0.9.6
- apache portable runtime0.9.7
- apache portable runtime0.9.7-dev
- apache portable runtime0.9.8
- apache portable runtime0.9.9
- apache portable runtime1.3.0
- apache portable runtime1.3.1
- apache portable runtime1.3.10
- apache portable runtime1.3.11
- apache portable runtime1.3.12
- apache portable runtime1.3.13
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | apr | before 1.4.6-1 | 1.4.6-1 |
Same product
apache: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-28331Apache Portable Runtime (APR): Windows out-of-bounds write in apr_socket_sendv function39Monitor
- CVE-2022-24963Apache Portable Runtime (APR): out-of-bound writes in the apr_encode family of functions39Monitor
- 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-1261328Monitor
- Later →CVE-2023-49582Aug 26, 2024 · Apache Portable Runtime (APR): Unexpected lax shared memory permissions22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:apr | 1.4.6-1 · Debian:12 | Package 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.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | dos | 2012-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.
- First PoC-37 d
- Published
- TodayNov 16, 2026+5393 d
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
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- P
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (9 more)Show less
- openwall.com/lists/oss-security/2012/02/08/3
- openwall.com/lists/oss-security/2012/02/09/1
- secunia.com/advisories/47862
- svn.apache.org/viewvc?rev=1231605&view=rev
- www.mail-archive.com/dev%40apr.apache.org/msg24439.html
- www.mail-archive.com/dev%40apr.apache.org/msg24472.html
- www.mail-archive.com/dev%40apr.apache.org/msg24473.html
- www.mandriva.com/security/advisories?name=MDVSA-2012:019
- exchange.xforce.ibmcloud.com/vulnerabilities/73096
Vendor advisories and official records. Exploit/PoC links are deliberately left out.