CVE-2021-31812

A carefully crafted PDF file can trigger an infinite loop while loading the file

Description

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.

Remediation

Workaround:

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

Categories

5.5
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.07%
Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory apache.org
Affected: Apache Software Foundation Apache PDFBox
Published at:
Updated at:

References

Link Tags
https://lists.apache.org/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e%40%3Cusers.pdfbox.apache.org%3E mailing list vendor advisory
https://lists.apache.org/thread.html/rf251f6c358087107f8c23473468b279d59d50a75db6b4768165c78d3%40%3Cannounce.apache.org%3E mailing list
http://www.openwall.com/lists/oss-security/2021/06/12/1 third party advisory mailing list
https://lists.apache.org/thread.html/rfe26bcaba564deb505c32711ba68df7ec589797dcd96ff3389a8aaba%40%3Cnotifications.ofbiz.apache.org%3E mailing list
https://lists.apache.org/thread.html/rd4b6db6c3b8ab3c70f1c3bbd725a40920896453ffc2744ade6afd9fb%40%3Cnotifications.ofbiz.apache.org%3E mailing list
https://lists.apache.org/thread.html/r143fd8445e0e778f4a85187bd79438630b96b8040e9401751fdb8aea%40%3Ccommits.ofbiz.apache.org%3E mailing list
https://lists.apache.org/thread.html/r179cc3b6822c167702ab35fe36093d5da4c99af44238c8a754c6860f%40%3Ccommits.ofbiz.apache.org%3E mailing list
https://lists.apache.org/thread.html/r2090789e4dcc2c87aacbd87d5f18e2d64dcb9f6eb7c47f5cf7d293cb%40%3Cnotifications.ofbiz.apache.org%3E mailing list
https://lists.apache.org/thread.html/r132e9dbbe0ebdc08b39583d8be0a575fdba573d60a42d940228bceff%40%3Cnotifications.ofbiz.apache.org%3E mailing list
https://lists.apache.org/thread.html/re0cacd3fb337cdf8469853913ed2b4ddd8f8bfc52ff0ddbe61c1dfba%40%3Ccommits.ofbiz.apache.org%3E mailing list
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7HHWJRFXZ3PTKLJCOM7WJEYZFKFWMNSV/ vendor advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MDJKJQOMVFDFIDS27OQJXNOYHV2O273D/ vendor advisory
https://www.oracle.com/security-alerts/cpuoct2021.html third party advisory patch
https://www.oracle.com/security-alerts/cpujan2022.html third party advisory patch
https://www.oracle.com/security-alerts/cpuapr2022.html third party advisory patch
https://www.oracle.com/security-alerts/cpujul2022.html

Frequently Asked Questions

What is the severity of CVE-2021-31812?
CVE-2021-31812 has been scored as a medium severity vulnerability.
How to fix CVE-2021-31812?
As a workaround for remediating CVE-2021-31812: This issue was fixed in 2.0.24. All users are recommended to upgrade to Apache PDFBox 2.0.24
Is CVE-2021-31812 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2021-31812 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-31812?
CVE-2021-31812 affects Apache Software Foundation Apache PDFBox.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.