CVE-2021-31811 Affecting libpdfbox2-java package, versions <2.0.24-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
3.45% (88th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN14-LIBPDFBOX2JAVA-11748741
  • published10 Aug 2025
  • disclosed12 Jun 2021

Introduced: 12 Jun 2021

CVE-2021-31811  (opens in a new tab)

How to fix?

Upgrade Debian:14 libpdfbox2-java to version 2.0.24-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libpdfbox2-java package and not the libpdfbox2-java package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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.

References

CVSS Base Scores

version 3.1