CVE-2021-27807 A carefully crafted PDF file can trigger an infinite loop while loading the file
An attacker can cause a denial of service by providing a crafted PDF file that triggers an infinite loop in the Apache PDFBox library.
- 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-27807?
CVE-2021-27807 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 19 Mar 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
A carefully crafted PDF file can trigger an infinite loop while loading the file. This issue affects Apache PDFBox version 2.0.22 and prior 2.0.x versions.
Weakness: CWE-834
Which versions are affected by CVE-2021-27807?
2 open source packages ship an affected version, including org.apache.pdfbox:pdfbox. It affects 15 products.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.pdfbox:pdfbox Maven | From 2.0.0 | 2.0.23 |
org.apache.pdfbox:pdfbox Maven | From 2.0.0 | 2.0.23 |
Products include Apache Pdfbox, Fedoraproject Fedora, Oracle Banking Trade Finance Process Management, Oracle Banking Treasury Management, Oracle Banking Virtual Account Management, Oracle Communications Messaging Server and 9 more.
How do I fix CVE-2021-27807?
Upgrade org.apache.pdfbox:pdfbox to 2.0.23 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-27807 being exploited?
There is no known exploitation of CVE-2021-27807 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
- CVE-2016-2175 High severity vulnerability that affects org.apache.pdfbox:pdfbox
- CVE-2018-8036 Loop with Unreachable Exit Condition in Apache PDFBox
- CVE-2021-31811 A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading a tiny file
- CVE-2021-31812 A carefully crafted PDF file can trigger an infinite loop while loading the file
- CVE-2021-27906 A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file
Sources
Also known as DEBIAN-CVE-2021-27807, GHSA-2h3j-m7gr-25xj, RHLW-2026-4f7c55b876854238, RHLW-2026-b2c64e34ae82b333, UBUNTU-CVE-2021-27807.