{"schemaVersion":3,"id":"CVE-2012-5340","aliases":["UBUNTU-CVE-2012-5340","DEBIAN-CVE-2012-5340"],"status":"published","duplicateOf":null,"title":null,"description":"SumatraPDF 2.1.1/MuPDF 1.0 allows remote attackers to cause an Integer Overflow in the lex_number() function via a corrupt PDF file.","dates":{"published":"2020-01-23T21:33:52.000Z","modified":"2024-09-13T16:02:54.702Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.05731,"percentile":0.93012,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.05731},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.05731,"percentile":0.93012}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.05731,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.05731,"percentile":0.93012}]},"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":"23246","name":"SumatraPDF 2.1.1/MuPDF 1.0 - Integer Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/23246","maturity":"poc","reliabilityScore":0.8,"verified":true,"type":"dos","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"dos","platform":"windows","file":"exploits/windows/dos/23246.txt","codes":["CVE-2012-5340","OSVDB-88305","OSVDB-88304"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"artifex","product":"mupdf","name":"MuPDF","label":"mupdf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.0","noFixRecorded":false,"fixedIn":null},{"text":"1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.0 | 1.1","eol":null,"hubHref":"/vendor/artifex/mupdf"},{"vendor":"debian","product":"mupdf","name":"mupdf","label":"mupdf","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mupdf","purlType":"deb","versions":[{"text":"< 1.2-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mupdf","name":"mupdf","label":"mupdf","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mupdf","purlType":"deb","versions":[{"text":"< 1.12.0+ds1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.12.0+ds1-1","eol":null,"hubHref":null},{"vendor":"sumatrapdfreader","product":"sumatrapdf","name":"sumatrapdf","label":"sumatrapdf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.1.1","eol":null,"hubHref":"/vendor/sumatrapdfreader/sumatrapdf"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.exploit-db.com/exploits/23246","label":"www.exploit-db.com/exploits/23246","hostname":"www.exploit-db.com","tags":["Exploit","Third Party Advisory","VDB Entry","REPORT"]},{"url":"https://bugs.ghostscript.com/show_bug.cgi?id=693371","label":"bugs.ghostscript.com/show_bug.cgi?id=693371","hostname":"bugs.ghostscript.com","tags":[]},{"url":"https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=f919270b6a732ff45c3ba2d0c105e2b39e9c9bc9","label":"cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=f919270b6a732ff45c3ba2d0c105e2b39e9c9bc9","hostname":"cgit.ghostscript.com","tags":[]},{"url":"https://ubuntu.com/security/CVE-2012-5340","label":"ubuntu.com/security/CVE-2012-5340","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=f919270b6a732ff45c3ba2d0c105e2b39e9c9bc9","label":"git.ghostscript.com?p=mupdf.git;a=commitdiff;h=f919270b6a732ff45c3ba2d0c105e2b39e9c9bc9","hostname":"git.ghostscript.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-5340","label":"www.cve.org/CVERecord?id=CVE-2012-5340","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-5340","label":"security-tracker.debian.org/tracker/CVE-2012-5340","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-01-23T21:33:52.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-13T16:02:54.702Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":42,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T16:49:38.498Z","stale":false,"partial":false}}