Vulnerability · Published Jun 12, 2021 · Assigned by apache
CVE-2021-31812A 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.1% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)3.1%top 12.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libpdfbox-java | no fix listed | DEBIAN-CVE-2021-31812 |
| Debian:13 | libpdfbox-java | no fix listed | DEBIAN-CVE-2021-31812 |
| Debian:14 | libpdfbox-java | no fix listed | DEBIAN-CVE-2021-31812 |
| Debian:12 | libpdfbox2-java | 2.0.24-1 | DEBIAN-CVE-2021-31812 |
| Debian:13 | libpdfbox2-java | 2.0.24-1 | DEBIAN-CVE-2021-31812 |
| Debian:14 | libpdfbox2-java | 2.0.24-1 | DEBIAN-CVE-2021-31812 |
| Maven | org.apache.pdfbox:pdfbox | 2.0.24 | GHSA-7grw-6pjh-jpc9 |
| Maven | org.apache.pdfbox:pdfbox-parent | 2.0.24 | GHSA-7grw-6pjh-jpc9 |
| Ubuntu:22.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:24.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:25.10 | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:26.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:26.10 | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:22.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:24.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:25.10 | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:26.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-31812 |
| Ubuntu:26.10 | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-31812 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache PDFBox | Apache PDFBox – before 2.0.24 |
Weakness: CWE-834
References
- https://lists.apache.org/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e%40%3Cusers.pdfbox.apache.org%3E x_refsource_MISC
- [announce] 20210612 CVE-2021-31812: Apache PDFBox: A carefully crafted PDF file can trigger an infinite loop while loading the file mailing-list, x_refsource_MLIST
- [oss-security] 20210612 CVE-2021-31812: Apache PDFBox: A carefully crafted PDF file can trigger an infinite loop while loading the file mailing-list, x_refsource_MLIST
- [ofbiz-notifications] 20210613 [jira] [Updated] (OFBIZ-12256) Update PDFBox to 2.0.24 because of CVE-2021-31811 & CVE-2021-31812 mailing-list, x_refsource_MLIST
- [ofbiz-notifications] 20210613 [jira] [Closed] (OFBIZ-12256) Update PDFBox to 2.0.24 because of CVE-2021-31811 & CVE-2021-31812 mailing-list, x_refsource_MLIST
- [ofbiz-commits] 20210613 [ofbiz-framework] branch release17.12 updated: Fixed: Update PDFBox to 2.0.24 because of CVE-2021-31811 & CVE-2021-31812 (OFBIZ-12256) mailing-list, x_refsource_MLIST
- [ofbiz-commits] 20210613 [ofbiz-framework] branch trunk updated: Fixed: Update PDFBox to 2.0.24 because of CVE-2021-31811 & CVE-2021-31812 (OFBIZ-12256) mailing-list, x_refsource_MLIST
- [ofbiz-notifications] 20210613 [jira] [Created] (OFBIZ-12256) Update PDFBox to 2.0.24 because of CVE-2021-31811 & CVE-2021-31812 mailing-list, x_refsource_MLIST
- [ofbiz-notifications] 20210613 [jira] [Commented] (OFBIZ-12256) Update PDFBox to 2.0.24 because of CVE-2021-31811 & CVE-2021-31812 mailing-list, x_refsource_MLIST
- [ofbiz-commits] 20210613 [ofbiz-framework] branch release18.12 updated: Fixed: Update PDFBox to 2.0.24 because of CVE-2021-31811 & CVE-2021-31812 (OFBIZ-12256) mailing-list, x_refsource_MLIST
- FEDORA-2021-4a9ead5fff vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-3d94c14be4 vendor-advisory, x_refsource_FEDORA
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC