Vulnerability · Published Mar 19, 2021 · Assigned by apache

CVE-2021-27807A carefully crafted PDF file can trigger an infinite loop while loading the file

Medium 5.5

In plain English

A medium-severity security flaw in Apache PDFBox from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.0% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)3.0%top 12.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libpdfbox2-java2.0.23-1DEBIAN-CVE-2021-27807
Debian:13libpdfbox2-java2.0.23-1DEBIAN-CVE-2021-27807
Debian:14libpdfbox2-java2.0.23-1DEBIAN-CVE-2021-27807
Mavenorg.apache.pdfbox:pdfbox2.0.23GHSA-2h3j-m7gr-25xj
Ubuntu:22.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:24.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:25.10libpdfbox-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:26.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:26.10libpdfbox-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:22.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:24.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:25.10libpdfbox2-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:26.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2021-27807
Ubuntu:26.10libpdfbox2-javano fix listedUBUNTU-CVE-2021-27807

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache PDFBox Apache PDFBox – through 2.0.22

Weakness: CWE-834

References