CVEfocus › CVE database › CVE-2021-31812

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

CVSS 5.5 MediumEPSS 3.1% (higher than 88% of CVEs)Published 2021-06-12Updated 2024-08-03Assigner: apache

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

CWE-834

What to do

Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
5Fix pending
6Under investigation
8Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libpdfbox-javaFix pendingUBUNTU-CVE-2021-31812
Ubuntu 26.10libpdfbox2-javaFix pendingUBUNTU-CVE-2021-31812
Ubuntu 26.04libpdfbox-javaUnder investigationUBUNTU-CVE-2021-31812
Ubuntu 26.04libpdfbox2-javaUnder investigationUBUNTU-CVE-2021-31812
Ubuntu 25.10libpdfbox-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31812
Ubuntu 25.10libpdfbox2-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31812
Ubuntu 24.04libpdfbox-javaUnder investigationUBUNTU-CVE-2021-31812
Ubuntu 24.04libpdfbox2-javaUnder investigationUBUNTU-CVE-2021-31812
Ubuntu 22.04libpdfbox-javaUnder investigationUBUNTU-CVE-2021-31812
Ubuntu 22.04libpdfbox2-javaUnder investigationUBUNTU-CVE-2021-31812
Ubuntu 20.04libpdfbox-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31812
Ubuntu 20.04libpdfbox2-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31812
Ubuntu 18.04libpdfbox-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31812
Ubuntu 18.04libpdfbox2-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31812
Ubuntu 16.04libpdfbox-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31812
Ubuntu 14.04libpdfbox-javaWill not fix
Ubuntu decided not to fix this in this release
Debian 14libpdfbox-javaFix pendingDEBIAN-CVE-2021-31812
Debian 14libpdfbox2-javaFixed2.0.24-1DEBIAN-CVE-2021-31812
Debian 13libpdfbox-javaFix pendingDEBIAN-CVE-2021-31812
Debian 13libpdfbox2-javaFixed2.0.24-1DEBIAN-CVE-2021-31812
Debian 12libpdfbox-javaFix pendingDEBIAN-CVE-2021-31812
Debian 12libpdfbox2-javaFixed2.0.24-1DEBIAN-CVE-2021-31812
Maven libraryorg.apache.pdfbox:pdfboxFixed2.0.24GHSA-7grw-6pjh-jpc9
Maven libraryorg.apache.pdfbox:pdfbox-parentFixed2.0.24GHSA-7grw-6pjh-jpc9

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: This issue was fixed in 2.0.24. All users are recommended to upgrade to Apache PDFBox 2.0.24

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.