Every CVE Search/ Get API key

CVE-2021-37220

MuPDF through 1.18.1 has an out-of-bounds write because the cached color converter does not...

5.5 MediumFix available

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

1.33%Up 0.7 points since Jul 22, 2021
90%50%10%1%

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 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
mupdf
Debian:12
before 1.17.0+ds1-2
1.17.0+ds1-2
mupdf
Debian:13
before 1.17.0+ds1-2
1.17.0+ds1-2
mupdf
Debian:14
before 1.17.0+ds1-2
1.17.0+ds1-2
mupdf
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
1.7-11.7a-11.7a-1ubuntu0.1~esm1
None known
mupdf
Ubuntu: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
mupdf
Ubuntu: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
mupdf
Ubuntu: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
mupdf
Ubuntu: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
mupdf
Ubuntu: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

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 12 moreShow less
MoveEnter Open