BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-37220 in Artifex Mupdf and 1 more product

Medium 5.5

MuPDF through 1.18.1 has an out-of-bounds write because the cached color converter does not properly consider the maximum key size of a hash table. This can, for example, be seen with crafted "mutool draw" input.

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.15.5
EPSS1.3%
EPSS percentile71th
FixUnknown

Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Artifex Mupdf ≤ 1.18.1
Fedoraproject Fedora 34

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.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

MuPDF through 1.18.1 has an out-of-bounds write because the cached color converter does not properly consider the maximum key size of a hash table. This can, for example, be seen with crafted "mutool draw" input.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-37220
BreachSpider IDBS-2021-GLOBAL-304272-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published2021-07-21
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-787: Out-of-Bounds Write

Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.

Analysis AI-written, not human-reviewed

MuPDF through version 1.18.1 contains an out-of-bounds write vulnerability in the cached color converter due to improper handling of the maximum key size of a hash table. This can be exploited with specially crafted input to the 'mutool draw' command.

The vulnerability is triggered when the cached color converter in MuPDF does not correctly validate the size of keys in a hash table, leading to an out-of-bounds write. An attacker could exploit this by providing a malicious PDF file to the 'mutool draw' command, potentially leading to arbitrary code execution or a denial of service.

Questions

What is CVE-2021-37220?

MuPDF through version 1.18.1 contains an out-of-bounds write vulnerability in the cached color converter due to improper handling of the maximum key size of a hash table. This can be exploited with specially crafted input to the 'mutool draw' command.

What is the CVSS score for CVE-2021-37220?

CVE-2021-37220 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. EPSS: 1.3%.

Is CVE-2021-37220 actively exploited?

No confirmed active exploitation of CVE-2021-37220 as of 2026-09-25.

How do I remediate CVE-2021-37220?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2021-37220?

CVE-2021-37220 affects Artifex Mupdf; Fedoraproject Fedora.

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"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.