{"schemaVersion":3,"id":"CVE-2012-0840","aliases":["DEBIAN-CVE-2012-0840"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2012-02-10T19:00:00.000Z","modified":"2024-08-06T18:38:14.789Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.42138,"percentile":0.98684,"severity":"high","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-1.2080000000000035,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.43346},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.42138,"percentile":0.98684}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.43346,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.42138,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.42138,"percentile":0.98684}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"36669","name":"Apache APR - Hash Collision Denial of Service","source":"exploit-database","url":"https://www.exploit-db.com/exploits/36669","maturity":"poc","reliabilityScore":0.8,"verified":true,"type":"dos","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"dos","platform":"linux","file":"exploits/linux/dos/36669.txt","codes":["CVE-2012-0840","OSVDB-78932"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"apache","product":"portable_runtime","name":"portable runtime","label":"portable_runtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.4.5","noFixRecorded":false,"fixedIn":null},{"text":"0.9.1","noFixRecorded":false,"fixedIn":null},{"text":"0.9.2","noFixRecorded":false,"fixedIn":null},{"text":"0.9.2-dev","noFixRecorded":false,"fixedIn":null},{"text":"0.9.3","noFixRecorded":false,"fixedIn":null},{"text":"0.9.3-dev","noFixRecorded":false,"fixedIn":null},{"text":"0.9.4","noFixRecorded":false,"fixedIn":null},{"text":"0.9.5","noFixRecorded":false,"fixedIn":null},{"text":"0.9.6","noFixRecorded":false,"fixedIn":null},{"text":"0.9.7","noFixRecorded":false,"fixedIn":null},{"text":"0.9.7-dev","noFixRecorded":false,"fixedIn":null},{"text":"0.9.8","noFixRecorded":false,"fixedIn":null},{"text":"0.9.9","noFixRecorded":false,"fixedIn":null},{"text":"0.9.16-dev","noFixRecorded":false,"fixedIn":null},{"text":"1.3.0","noFixRecorded":false,"fixedIn":null},{"text":"1.3.1","noFixRecorded":false,"fixedIn":null},{"text":"1.3.2","noFixRecorded":false,"fixedIn":null},{"text":"1.3.3","noFixRecorded":false,"fixedIn":null},{"text":"1.3.4","noFixRecorded":false,"fixedIn":null},{"text":"1.3.4-dev","noFixRecorded":false,"fixedIn":null},{"text":"1.3.5","noFixRecorded":false,"fixedIn":null},{"text":"1.3.6","noFixRecorded":false,"fixedIn":null},{"text":"1.3.6-dev","noFixRecorded":false,"fixedIn":null},{"text":"1.3.7","noFixRecorded":false,"fixedIn":null},{"text":"1.3.8","noFixRecorded":false,"fixedIn":null},{"text":"1.3.9","noFixRecorded":false,"fixedIn":null},{"text":"1.3.10","noFixRecorded":false,"fixedIn":null},{"text":"1.3.11","noFixRecorded":false,"fixedIn":null},{"text":"1.3.12","noFixRecorded":false,"fixedIn":null},{"text":"1.3.13","noFixRecorded":false,"fixedIn":null},{"text":"1.4.0","noFixRecorded":false,"fixedIn":null},{"text":"1.4.1","noFixRecorded":false,"fixedIn":null},{"text":"1.4.2","noFixRecorded":false,"fixedIn":null},{"text":"1.4.3","noFixRecorded":false,"fixedIn":null},{"text":"1.4.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.4.5 | 0.9.1 | 0.9.2 | 0.9.2-dev | 0.9.3 | 0.9.3-dev | 0.9.4 | 0.9.5 | 0.9.6 | 0.9.7 | 0.9.7-dev | 0.9.8 | 0.9.9 | 0.9.16-dev | 1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.4-dev | 1.3.5 | 1.3.6 | 1.3.6-dev | 1.3.7 | 1.3.8 | 1.3.9 | 1.3.10 | 1.3.11 | 1.3.12 | 1.3.13 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4","eol":null,"hubHref":"/vendor/apache/portable_runtime"},{"vendor":"debian","product":"apr","name":"apr","label":"apr","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/apr","purlType":"deb","versions":[{"text":"< 1.4.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.6-1","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://mail-archives.apache.org/mod_mbox/apr-commits/201201.mbox/%3C20120115003715.071D423888FD%40eris.apache.org%3E","label":"mail-archives.apache.org/mod_mbox/…","hostname":"mail-archives.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/73096","label":"exchange.xforce.ibmcloud.com/vulnerabilities/73096","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"http://openwall.com/lists/oss-security/2012/02/08/3","label":"openwall.com/lists/oss-security/2012/02/08/3","hostname":"openwall.com","tags":["Mailing List","X Refsource MLIST"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:019","label":"www.mandriva.com/security/advisories?name=MDVSA-2012:019","hostname":"www.mandriva.com","tags":["Vendor Advisory","X Refsource MANDRIVA"]},{"url":"http://secunia.com/advisories/47862","label":"secunia.com/advisories/47862","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Vendor Advisory"]},{"url":"http://svn.apache.org/viewvc?rev=1231605&view=rev","label":"svn.apache.org/viewvc?rev=1231605&view=rev","hostname":"svn.apache.org","tags":["X Refsource CONFIRM","Patch"]},{"url":"http://www.mail-archive.com/dev%40apr.apache.org/msg24439.html","label":"www.mail-archive.com/dev%40apr.apache.org/msg24439.html","hostname":"www.mail-archive.com","tags":["Mailing List","X Refsource MLIST"]},{"url":"http://www.mail-archive.com/dev%40apr.apache.org/msg24472.html","label":"www.mail-archive.com/dev%40apr.apache.org/msg24472.html","hostname":"www.mail-archive.com","tags":["Mailing List","X Refsource MLIST"]},{"url":"http://openwall.com/lists/oss-security/2012/02/09/1","label":"openwall.com/lists/oss-security/2012/02/09/1","hostname":"openwall.com","tags":["Mailing List","X Refsource MLIST"]},{"url":"http://www.mail-archive.com/dev%40apr.apache.org/msg24473.html","label":"www.mail-archive.com/dev%40apr.apache.org/msg24473.html","hostname":"www.mail-archive.com","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-0840","label":"security-tracker.debian.org/tracker/CVE-2012-0840","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2012-02-10T19:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T18:38:14.789Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":38,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:30:16.815Z","stale":false,"partial":false}}