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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.05%, higher than 87% of CVEs (2026-12-01)
- Published: 2021-06-12T09:45:11.000Z
- Modified: 2026-06-17T03:52:16.833Z
- Also known as: GHSA-7grw-6pjh-jpc9
- Weaknesses: CWE-834, CWE-835
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache PDFBox: from Apache PDFBox before 2.0.24
- org.apache.pdfbox:pdfbox (Maven): from 2.0.0 before 2.0.24
- org.apache.pdfbox:pdfbox-parent (Maven): from 2.0.0 before 2.0.24
- apache pdfbox: from 2.0.0 up to 2.0.23
- fedoraproject fedora: 33; 34
- oracle banking_corporate_lending_process_management: 14.2.0; 14.3.0; 14.5.0
- oracle banking_credit_facilities_process_management: 14.2.0; 14.3.0; 14.5.0
- oracle banking_supply_chain_finance: 14.2.0; 14.3.0; 14.5.0
- oracle retail_customer_management_and_segmentation_foundation: 18.1
- oracle communications_messaging_server: 8.1

## Every score

- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://lists.apache.org/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e%40%3Cusers.pdfbox.apache.org%3E> (mailing-list, vendor-advisory, web)
- <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> (mailing-list, third-party-advisory, web)
- <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> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31812> (advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MDJKJQOMVFDFIDS27OQJXNOYHV2O273D> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7HHWJRFXZ3PTKLJCOM7WJEYZFKFWMNSV> (web)
- <https://lists.apache.org/thread.html/rfe26bcaba564deb505c32711ba68df7ec589797dcd96ff3389a8aaba@%3Cnotifications.ofbiz.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rf251f6c358087107f8c23473468b279d59d50a75db6b4768165c78d3@%3Cannounce.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/re0cacd3fb337cdf8469853913ed2b4ddd8f8bfc52ff0ddbe61c1dfba@%3Ccommits.ofbiz.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rd4b6db6c3b8ab3c70f1c3bbd725a40920896453ffc2744ade6afd9fb@%3Cnotifications.ofbiz.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e@%3Cusers.pdfbox.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r2090789e4dcc2c87aacbd87d5f18e2d64dcb9f6eb7c47f5cf7d293cb@%3Cnotifications.ofbiz.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r179cc3b6822c167702ab35fe36093d5da4c99af44238c8a754c6860f@%3Ccommits.ofbiz.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r143fd8445e0e778f4a85187bd79438630b96b8040e9401751fdb8aea@%3Ccommits.ofbiz.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r132e9dbbe0ebdc08b39583d8be0a575fdba573d60a42d940228bceff@%3Cnotifications.ofbiz.apache.org%3E> (web)

## Sources

- CVE List: [CVE-2021-31812](https://www.cve.org/CVERecord?id=CVE-2021-31812), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-7grw-6pjh-jpc9](https://github.com/advisories/GHSA-7grw-6pjh-jpc9), CC-BY-4.0, modified 2024-03-08
- NVD: [CVE-2021-31812](https://nvd.nist.gov/vuln/detail/CVE-2021-31812), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31812 · Whole record: https://cve.day/CVE-2021-31812.json · Rebuilt by cve.day 2026-11-25T22:58:01.844Z
