CVE-2021-4216
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in...
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
- Record
CVE-2021-4216- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-369
- Updated
- 2026-11-02
CVE List No score
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
- Record
CVE-2021-4216- Weakness
- CWE-369
- Updated
- 2026-11-02
EUVDEUVD-2021-34074 No score
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
- Record
EUVD-2021-34074- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-fxg7-4q6m-p84h
5.5
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in...
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
- Record
GHSA-fxg7-4q6m-p84h- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-369
- Updated
- 2026-11-02
OSV
5.5
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
- Record
CVE-2021-4216- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-4216
5.5
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
- Record
DEBIAN-CVE-2021-4216- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2021-4216
5.5
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
- Record
UBUNTU-CVE-2021-4216- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2022:10125-1 No score
Security update for mupdf
This update for mupdf fixes the following issues:
- CVE-2021-4216: Fixed division by zero for zero width pages in muraster (boo#1202858)
- Record
openSUSE-SU-2022:10125-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2022:10126-1 No score
Security update for mupdf
This update for mupdf fixes the following issues:
mupdf was updated to 1.20.3:
- return error, not success when unable to lock native device resource.
- Bug 705620: Start journal operation instead of pushing local xref.
- Ensure AndroidDrawDevice is destroyed, even upon exception.
- source/pdf/pdf-clean.c: fix segv from incorrect call to fz_drop_pixmap().
- Bug 705681: Enclose code in begin/end operation.
- Guard against SEGVs when calling archive functions with NULL archive.
mupdf was updated to 1.20.0 (boo#1202858, CVE-2021-4216):
- Experimental C# bindings
- Cross compilation should no longer need a host compiler
- Major additions to JNI bindings
- New API to edit outline
- New API to resolve and create links
- New API to toggle individual layers in PDF
- Layer panel in mupdf-gl
- Layer option in mutool draw
- New API to add a Javascript console
- Console panel in mupdf-gl
- Text search API extended to be able to distinguish between separate search hits
- Command line tool improvements:
- all: Negative page numbers to index from the last page
- mutool draw: Add option to render document without text
- mutool draw and convert: Support DPI option in text and HTML output
- New hybrid HTML output format using 'scripts/pdftohtml' script:
- Graphics in a background image
- Text on top
- Improved WASM viewer demo
- Support high DPI screens
- Progressive loading
- Update to zlib 1.2.12 for security fix
mupdf was updated to 1.19.1:
- Updated zlib to 1.2.12 due to CVE-2018-25032
- Record
openSUSE-SU-2022:10126-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12326-1 No score
mupdf-1.20.3-2.1 on GA media
These are all security issues fixed in the mupdf-1.20.3-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12326-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mupdfDebian:12 |
before 1.20.0+ds1-1 | 1.20.0+ds1-1 |
mupdfDebian:13 |
before 1.20.0+ds1-1 | 1.20.0+ds1-1 |
mupdfDebian:14 |
before 1.20.0+ds1-1 | 1.20.0+ds1-1 |
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 |
All versions, plus listed versions 1.11+ds1-1.11.11+ds1-21.12.0+ds1-11.12.0+ds1-1ubuntu0.1~esm11.12.0+ds1-1ubuntu0.1~esm2 |
None known |
mupdfUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 1.15.0+ds1-11.16.1+ds1-1ubuntu11.16.1+ds1-1ubuntu1+esm11.16.1+ds1-1ubuntu1+esm2 |
None known |
mupdfUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 1.17.0+ds1-21.19.0+ds1-11.19.0+ds1-1build11.19.0+ds1-21.19.0+ds1-2ubuntu0.1~esm1 |
None known |
mupdfSUSE:Package Hub 15 SP3 |
before 1.12.0-bp153.2.6.1 | 1.12.0-bp153.2.6.1 |
mupdfopenSUSE:Leap 15.3 |
before 1.12.0-bp153.2.6.1 | 1.12.0-bp153.2.6.1 |
mupdfSUSE:Package Hub 15 SP4 From an advisory covering 2 CVEs |
before 1.20.3-bp154.2.3.1 | 1.20.3-bp154.2.3.1 |
mupdfopenSUSE:Leap 15.4 From an advisory covering 2 CVEs |
before 1.20.3-bp154.2.3.1 | 1.20.3-bp154.2.3.1 |
mupdfopenSUSE:Tumbleweed |
before 1.20.3-2.1 | 1.20.3-2.1 |
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-4216 is a medium vulnerability (CVSS 5.5) in Artifex Mupdf, published August 26, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.25%, the 16th percentile. Fixed in mupdf 1.20.0+ds1-1.
References
bugs.ghostscript.com/show_bug.cgi?id=704834
github.com/ArtifexSoftware/mupdf/commit/22c47acbd52949421f8c7cb46ea1556827d0fcbf
nvd.nist.gov/vuln/detail/CVE-2021-4216
github.com/advisories/GHSA-fxg7-4q6m-p84h
security-tracker.debian.org/tracker/CVE-2021-4216
ubuntu.com/security/CVE-2021-4216
Show 6 moreShow less
cve.org/CVERecord?id=CVE-2021-4216
lists.opensuse.org/archives/list/[email protected]/thread/HOB6LS4J7NNBI7QSCZO47TN6B7O6WKCI
bugzilla.suse.com/1202858
suse.com/security/cve/CVE-2021-4216
lists.opensuse.org/archives/list/[email protected]/thread/3URMJJJ2MKM4FNDYFMSSIEJDTNENDZRU
suse.com/security/cve/CVE-2018-25032