CVE-2012-0840
CVE-2012-0840 is a medium-severity vulnerability in Apache Portable Runtime with a CVSS 2.0 base score of 5.0. Its EPSS exploit-prediction score of 43% places it in the 99th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-20.
Key facts
- Severity: Medium (CVSS 2.0 base score 5.0)
- EPSS exploit prediction: 43% (99th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-20
- Affected product: Apache Portable Runtime
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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 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.
- How severe is CVE-2012-0840?
- CVE-2012-0840 has a CVSS 2.0 base score of 5.0, rated medium severity.
- Is CVE-2012-0840 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 43% (99th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2012-0840?
- CVE-2012-0840 primarily affects Apache Portable Runtime. In total, 35 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2012-0840?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2012-0840 published?
- CVE-2012-0840 was published on 2012-02-10 and last updated on 2026-06-16.
References
- http://mail-archives.apache.org/mod_mbox/apr-commits/201201.mbox/%3C20120115003715.071D423888FD%40eris.apache.org%3E
- http://openwall.com/lists/oss-security/2012/02/08/3
- http://openwall.com/lists/oss-security/2012/02/09/1
- http://secunia.com/advisories/47862
- http://svn.apache.org/viewvc?rev=1231605&view=rev
- http://www.mail-archive.com/dev%40apr.apache.org/msg24439.html
- http://www.mail-archive.com/dev%40apr.apache.org/msg24472.html
- http://www.mail-archive.com/dev%40apr.apache.org/msg24473.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:019
- https://exchange.xforce.ibmcloud.com/vulnerabilities/73096
Affected products (35)
- cpe:2.3:a:apache:portable_runtime:*:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.1:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.2:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.2-dev:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.3:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.3-dev:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.4:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.5:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.6:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.7:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.7-dev:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.8:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.9:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:0.9.16-dev:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.1:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.2:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.3:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.4:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.4-dev:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.5:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.6:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.6-dev:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.7:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.8:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.9:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.10:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.11:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.12:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.3.13:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.4.0:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.4.1:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.4.2:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.4.3:*:*:*:*:*:*:*
- cpe:2.3:a:apache:portable_runtime:1.4.4:*:*:*:*:*:*:*
More vulnerabilities in Apache Portable Runtime
- CVE-2009-2412 — Critical (CVSS 10.0): Multiple integer overflows in the Apache Portable Runtime (APR) library and the Apache Portable Utility library (aka…
- CVE-2022-28331 — Critical (CVSS 9.8): On Windows, Apache Portable Runtime 1.7.0 and earlier may write beyond the end of a stack based buffer in…
- CVE-2022-24963 — Critical (CVSS 9.8): Integer Overflow or Wraparound vulnerability in apr_encode functions of Apache Portable Runtime (APR) allows an…
- CVE-2009-2699 — High (CVSS 7.5): The Solaris pollset feature in the Event Port backend in poll/unix/port.c in the Apache Portable Runtime (APR) library…
- CVE-2021-35940 — High (CVSS 7.1): An out-of-bounds array read in the apr_time_exp*() functions was fixed in the Apache Portable Runtime 1.6.3 release…
- CVE-2017-12613 — High (CVSS 7.1): When apr_time_exp*() or apr_os_exp_time*() functions are invoked with an invalid month field value in Apache Portable…
All CVEs affecting Apache Portable Runtime →
Other CWE-20 (Improper Input Validation) vulnerabilities
- CVE-2026-48316 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48281 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48277 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48055 — Critical (CVSS 10.0): Streambert is a cross-platform Electron Desktop App to stream and download any video media. In versions 2.4.0 and…
- CVE-2026-34910 — Critical (CVSS 10.0): A malicious actor with access to the network could exploit an Improper Input Validation vulnerability found in UniFi OS…
- CVE-2026-33587 — Critical (CVSS 10.0): Lack of user input sanitisation in Open Notebook v1.8.3 allows the application user to execute Python code (and…
Browse all CWE-20 (Improper Input Validation) vulnerabilities →