CVE-2021-37220
MuPDF through 1.18.1 has an out-of-bounds write because the cached color converter does not...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
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.
- Record
CVE-2021-37220- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-37220- Updated
- 2026-11-02
EUVDEUVD-2021-23792 No score
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.
- Record
EUVD-2021-23792- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-244v-xghf-wq26 No score
MuPDF through 1.18.1 has an out-of-bounds write because the cached color converter does not...
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.
- Record
GHSA-244v-xghf-wq26- Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
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.
- Record
CVE-2021-37220- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-37220
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.
- Record
DEBIAN-CVE-2021-37220- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-37220
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.
- Record
UBUNTU-CVE-2021-37220- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUSN-7825-1 No score
mupdf vulnerabilities
It was discovered that MuPDF incorrectly managed memory, resulting in a memory leak. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-1000036)
It was discovered that MuPDF could enter an infinite loop when parsing certain PDF files. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-10289)
It was discovered that MuPDF incorrectly managed memory, possibly leading to a segmentation fault. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-16647, CVE-2018-16648)
It was discovered that MuPDF contained a use-after-free vulnerability. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2020-21896)
It was discovered that MuPDF incorrectly managed memory, resulting in a memory leak. An attacker could possibly use this issue to cause a denial of service or obtain sensitive information. This issue only affected Ubuntu 20.04 LTS. (CVE-2020-26683)
Maxim Mishechkin, Vitalii Akolzin, Shamil Kurmangaleev, Denis Straghkov, Fedor Nis'kov and Ivan Gulakov discovered that MuPDF incorrectly managed memory under certain circumstances, leading to a double-free. An attacker could possibly use this to cause a denial of service. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2021-3407)
Xuwei Liu discovered that MuPDF may perform an out-of-bounds write under certain circumstances. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2021-37220)
- Record
USN-7825-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mupdfDebian:12 |
before 1.17.0+ds1-2 | 1.17.0+ds1-2 |
mupdfDebian:13 |
before 1.17.0+ds1-2 | 1.17.0+ds1-2 |
mupdfDebian:14 |
before 1.17.0+ds1-2 | 1.17.0+ds1-2 |
mupdfUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1.7-11.7a-11.7a-1ubuntu0.1~esm1 |
None known |
mupdfUbuntu:Pro:18.04:LTS |
before 1.12.0+ds1-1ubuntu0.1~esm1, plus listed versions 1.11+ds1-1.11.11+ds1-21.12.0+ds1-1 |
1.12.0+ds1-1ubuntu0.1~esm1 |
mupdfUbuntu:Pro:20.04:LTS |
before 1.16.1+ds1-1ubuntu1+esm1, plus listed versions 1.15.0+ds1-11.16.1+ds1-1ubuntu1 |
1.16.1+ds1-1ubuntu1+esm1 |
mupdfUbuntu:Pro:16.04:LTS From an advisory covering 8 CVEs |
before 1.7a-1ubuntu0.1~esm1, plus listed versions 1.7-11.7a-1 |
1.7a-1ubuntu0.1~esm1 |
mupdfUbuntu:Pro:18.04:LTS From an advisory covering 8 CVEs |
before 1.12.0+ds1-1ubuntu0.1~esm1, plus listed versions 1.11+ds1-1.11.11+ds1-21.12.0+ds1-1 |
1.12.0+ds1-1ubuntu0.1~esm1 |
mupdfUbuntu:Pro:20.04:LTS From an advisory covering 8 CVEs |
before 1.16.1+ds1-1ubuntu1+esm1, plus listed versions 1.15.0+ds1-11.16.1+ds1-1ubuntu1 |
1.16.1+ds1-1ubuntu1+esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-37220 is a medium vulnerability (CVSS 5.5) in Artifex Mupdf, published July 21, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.33%, the 71st percentile. Fixed in mupdf 1.17.0+ds1-2.
References
bugs.ghostscript.com/show_bug.cgi?id=703791
git.ghostscript.com?p=mupdf.git%3Bh=f5712c9949d026e4b891b25837edd2edc166151f
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TKRMREIYUBGG2GV73CU7BJNW2Q34IP23
nvd.nist.gov/vuln/detail/CVE-2021-37220
lists.fedoraproject.org/archives/list/[email protected]/message/TKRMREIYUBGG2GV73CU7BJNW2Q34IP23
git.ghostscript.com?p=mupdf.git;h=f5712c9949d026e4b891b25837edd2edc166151f
Show 12 moreShow less
github.com/advisories/GHSA-244v-xghf-wq26
security-tracker.debian.org/tracker/CVE-2021-37220
ubuntu.com/security/CVE-2021-37220
cve.org/CVERecord?id=CVE-2021-37220
ubuntu.com/security/notices/USN-7825-1
ubuntu.com/security/CVE-2018-10289
ubuntu.com/security/CVE-2018-16647
ubuntu.com/security/CVE-2018-16648
ubuntu.com/security/CVE-2018-1000036
ubuntu.com/security/CVE-2020-21896
ubuntu.com/security/CVE-2020-26683
ubuntu.com/security/CVE-2021-3407