{"schemaVersion":3,"id":"CVE-2012-5641","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Directory traversal vulnerability in the partition2 function in mochiweb_util.erl in MochiWeb before 2.4.0, as used in Apache CouchDB before 1.0.4, 1.1.x before 1.1.2, and 1.2.x before 1.2.1, allows remote attackers to read arbitrary files via a ..\\ (dot dot backslash) in the default URI.","dates":{"published":"2014-03-18T14:00:00.000Z","modified":"2024-08-06T21:14:16.193Z","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:P/I:N/A:N","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:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.08945,"percentile":0.95199,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.08945},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.08945,"percentile":0.95199}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.08945,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.08945,"percentile":0.95199}]},"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":"GITHUB_MELKOTE_MOCHIWEB","name":"Mochiweb","source":"github","url":"https://github.com/melkote/mochiweb/commit/ac2bf","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"apache","product":"couchdb","name":"CouchDB","label":"couchdb","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.0.3","noFixRecorded":false,"fixedIn":null},{"text":"1.0.0","noFixRecorded":false,"fixedIn":null},{"text":"1.0.1","noFixRecorded":false,"fixedIn":null},{"text":"1.0.2","noFixRecorded":false,"fixedIn":null},{"text":"1.1.0","noFixRecorded":false,"fixedIn":null},{"text":"1.1.1","noFixRecorded":false,"fixedIn":null},{"text":"1.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.0.3 | 1.0.0 | 1.0.1 | 1.0.2 | 1.1.0 | 1.1.1 | 1.2.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-couchdb","label":"Apache CouchDB","category":"database"}},"hubHref":"/vendor/apache/couchdb"},{"vendor":"mochiweb_project","product":"mochiweb","name":"mochiweb","label":"mochiweb","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.3.2","noFixRecorded":false,"fixedIn":null},{"text":"2.1.0","noFixRecorded":false,"fixedIn":null},{"text":"2.2.0","noFixRecorded":false,"fixedIn":null},{"text":"2.2.1","noFixRecorded":false,"fixedIn":null},{"text":"2.3.0","noFixRecorded":false,"fixedIn":null},{"text":"2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.3.2 | 2.1.0 | 2.2.0 | 2.2.1 | 2.3.0 | 2.3.1","eol":null,"hubHref":"/vendor/mochiweb_project/mochiweb"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.securityfocus.com/bid/57313","label":"www.securityfocus.com/bid/57313","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"http://seclists.org/fulldisclosure/2013/Jan/81","label":"seclists.org/fulldisclosure/2013/Jan/81","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC"]},{"url":"http://secunia.com/advisories/51765","label":"secunia.com/advisories/51765","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"https://github.com/mochi/mochiweb/issues/92","label":"github.com/mochi/mochiweb/issues/92","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/81240","label":"exchange.xforce.ibmcloud.com/vulnerabilities/81240","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"https://github.com/melkote/mochiweb/commit/ac2bf","label":"github.com/melkote/mochiweb/commit/ac2bf","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2014-03-18T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T21:14:16.193Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T02:53:20.608Z","stale":false,"partial":false}}