Home / Sumatrapdfreader / Sumatrapdf / CVE-2012-5340
CVE-2012-5340: is it exploited, and which versions of Sumatrapdfreader Sumatrapdf are affected and fixed?
CVE-2012-5340 is an integer overflow vulnerability in Sumatrapdfreader Sumatrapdf. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 06:38 UTC). Affected: sumatrapdf 2.1.1, mupdf 1.0 and mupdf 1.1 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:16 UTC.
What is CVE-2012-5340?
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.
From the CVE record by mitre, last updated September 13, 2024, 16:02 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sumatrapdfreader | sumatrapdf | 2.1.1 | application |
| artifex | mupdf | 1.0 | application |
| artifex | mupdf | 1.1 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:46 UTC.
How severe is CVE-2012-5340?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-5340 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, September 13, 2024)
- EPSS
- 5.73% probability of exploitation activity in the next 30 days, percentile 93.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- 23246 exploit
- https://bugs.ghostscript.com/show_bug.cgi?id=693371
- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=f919270b6a732ff45c3ba2d0c105e2b39e9c9bc9
When was it published, and where is the official record?
- Reserved
- October 8, 2012
- Published
- January 23, 2020, 21:33 UTC
- CVE record updated
- September 13, 2024, 16:02 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 23:46 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:16 UTC; KEV December 3, 2026, 06:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Sumatrapdf?
- Nov 4, 2026CVE-2026-115758 sumatrapdfreader sumatrapdf: certificate host not checked
- Oct 8, 2026CVE-2026-107802 sumatrapdfreader sumatrapdf: argument injection
- Oct 8, 2026CVE-2026-107738 sumatrapdfreader sumatrapdf: out-of-bounds read
- Oct 8, 2026CVE-2026-107737 sumatrapdfreader sumatrapdf: improper array index validation
- Oct 8, 2026CVE-2026-107736 sumatrapdfreader sumatrapdf: stack buffer overflow
- Oct 8, 2026CVE-2026-107735 sumatrapdfreader sumatrapdf: not Failing Securely
- Oct 8, 2026CVE-2026-107734 sumatrapdfreader sumatrapdf: improper input validation
- Oct 8, 2026CVE-2026-107733 sumatrapdfreader sumatrapdf: NULL pointer dereference (crash)
Questions about CVE-2012-5340
Is CVE-2012-5340 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 06:38 UTC. FIRST's EPSS gives it a 5.73% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Sumatrapdfreader Sumatrapdf are affected by CVE-2012-5340?
sumatrapdf 2.1.1, mupdf 1.0 and mupdf 1.1, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2012-5340?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2012-5340?
High (7.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-5340?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.