CVE-2021-4216 Denial of service in mupdf

Medium 5.5 Published Updated

A division-by-zero flaw in MuPDF allows attackers to cause a denial of service via zero-width pages.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-4216?

CVE-2021-4216 is a medium-severity denial of service vulnerability in Artifex Mupdf, published on 26 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-369

Which versions are affected by CVE-2021-4216?

It affects 1 product.

Linux distribution packages (3)
mupdf SUSE:Package Hub 15 SP3All versions1.12.0-bp153.2.6.1
mupdf openSUSE:Leap 15.3All versions1.12.0-bp153.2.6.1
mupdf openSUSE:TumbleweedAll versions1.20.3-2.1

Products include Artifex Mupdf.

How do I fix CVE-2021-4216?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-4216 being exploited?

There is no known exploitation of CVE-2021-4216 in the wild and no public exploit code.

All Artifex Mupdf vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-4216, GHSA-fxg7-4q6m-p84h, UBUNTU-CVE-2021-4216, openSUSE-SU-2022:10125-1, openSUSE-SU-2024:12326-1.

Is CVE-2021-4216 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free