CVE-2021-31811 A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading a tiny file

Medium 5.5 Published Updated

Attackers can cause a denial of service by providing a crafted PDF file that triggers an OutOfMemory exception in Apache PDFBox.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-31811?

CVE-2021-31811 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 12 Jun 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In Apache PDFBox, a carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file. This issue affects Apache PDFBox version 2.0.23 and prior 2.0.x versions.

Weakness: CWE-770, CWE-789

Which versions are affected by CVE-2021-31811?

4 open source packages ship an affected version, including org.apache.pdfbox:pdfbox and org.apache.pdfbox:pdfbox-parent. It affects 12 products.

PackageAffectedFixed in
org.apache.pdfbox:pdfbox MavenFrom 2.0.02.0.24
org.apache.pdfbox:pdfbox MavenFrom 2.0.02.0.24
org.apache.pdfbox:pdfbox-parent MavenFrom 2.0.02.0.24
org.apache.pdfbox:pdfbox-parent MavenFrom 2.0.02.0.24

Products include Apache Pdfbox, Fedoraproject Fedora, Oracle Banking Corporate Lending Process Management, Oracle Banking Credit Facilities Process Management, Oracle Banking Supply Chain Finance, Oracle Banking Trade Finance and 6 more.

How do I fix CVE-2021-31811?

Upgrade org.apache.pdfbox:pdfbox to 2.0.24 or later.

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-31811 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-31811, GHSA-fg3j-q579-v8x4, UBUNTU-CVE-2021-31811.

Is CVE-2021-31811 in your software?

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

Check your SBOMs for free