CVE-2012-5340 in Artifex Mupdf and 1 more product
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.
Affects 2 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Artifex | Mupdf | 1.0 1.1 |
| Sumatrapdfreader | Sumatrapdf | 2.1.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2012-5340 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-171109-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2020-01-23 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-190: Integer Overflow or Wraparound
Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.
Related attack patterns (CAPEC)
CAPEC-92 Forced Integer Overflow via CWE-190
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2012-5340 affects SumatraPDF 2.1.1 and MuPDF 1.0, allowing remote attackers to cause an integer overflow in the lex_number() function through a corrupt PDF file, potentially leading to arbitrary code execution.
The vulnerability is triggered by a corrupt PDF file that contains a specially crafted number, leading to an integer overflow in the lex_number() function. This can be exploited by an attacker to execute arbitrary code in the context of the application.
Questions
What is CVE-2012-5340?
CVE-2012-5340 affects SumatraPDF 2.1.1 and MuPDF 1.0, allowing remote attackers to cause an integer overflow in the lex_number() function through a corrupt PDF file, potentially leading to arbitrary code execution.
What is the CVSS score for CVE-2012-5340?
CVE-2012-5340 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 5.7%.
Is CVE-2012-5340 actively exploited?
Public exploit available for CVE-2012-5340. Exploitation risk elevated.
How do I remediate CVE-2012-5340?
Priority: HIGH.
What systems are affected by CVE-2012-5340?
CVE-2012-5340 affects Artifex Mupdf; Sumatrapdfreader Sumatrapdf.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Artifex","product":"Mupdf","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.