Vulnerability · Published Mar 19, 2021 · Assigned by apache

CVE-2021-27906A carefully crafted PDF file can trigger an OutOfMemory-Exception 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.3% (higher than 89% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)3.3%top 11.3% 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 OutOfMemory-Exception 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-27906
Debian:13libpdfbox2-java2.0.23-1DEBIAN-CVE-2021-27906
Debian:14libpdfbox2-java2.0.23-1DEBIAN-CVE-2021-27906
Mavenorg.apache.pdfbox:pdfbox2.0.23GHSA-6vqp-h455-42mr
Ubuntu:22.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:24.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:25.10libpdfbox-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:26.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:26.10libpdfbox-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:22.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:24.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:25.10libpdfbox2-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:26.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2021-27906
Ubuntu:26.10libpdfbox2-javano fix listedUBUNTU-CVE-2021-27906

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache PDFBox Apache PDFBox – through 2.0.22

Weakness: CWE-789

References