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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-06-12 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-31812, DEBIAN-CVE-2021-31812, GHSA-7grw-6pjh-jpc9
- Record: https://cvemate.com/vulnerability/CVE-2021-31812 · JSON: https://cvemate.com/vulnerability/CVE-2021-31812/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 3.054%, percentile 88.001%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache pdfbox: ≥ Apache PDFBox, \< 2.0.24
- apache pdfbox: ≥ 2.0.0, ≤ 2.0.23
- debian libpdfbox-java (Debian): All versions (No fix recorded)
- debian libpdfbox2-java (Debian): \< 2.0.24-1
- ubuntu libpdfbox-java (Ubuntu): All versions (No fix recorded)
- ubuntu libpdfbox2-java (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 33 \| 34
- org.apache.pdfbox pdfbox (Maven): ≥ 2.0.0, \< 2.0.24
- org.apache.pdfbox pdfbox-parent (Maven): ≥ 2.0.0, \< 2.0.24
- 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 communications\_messaging\_server: 8.1
- oracle retail\_customer\_management\_and\_segmentation\_foundation: 18.1

## References (first 20 of 32)

- <https://lists.apache.org/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e%40%3Cusers.pdfbox.apache.org%3E>
- <https://lists.apache.org/thread.html/rf251f6c358087107f8c23473468b279d59d50a75db6b4768165c78d3%40%3Cannounce.apache.org%3E>
- <http://www.openwall.com/lists/oss-security/2021/06/12/1>
- <https://lists.apache.org/thread.html/rfe26bcaba564deb505c32711ba68df7ec589797dcd96ff3389a8aaba%40%3Cnotifications.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/rd4b6db6c3b8ab3c70f1c3bbd725a40920896453ffc2744ade6afd9fb%40%3Cnotifications.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/r143fd8445e0e778f4a85187bd79438630b96b8040e9401751fdb8aea%40%3Ccommits.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/r179cc3b6822c167702ab35fe36093d5da4c99af44238c8a754c6860f%40%3Ccommits.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/r2090789e4dcc2c87aacbd87d5f18e2d64dcb9f6eb7c47f5cf7d293cb%40%3Cnotifications.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/r132e9dbbe0ebdc08b39583d8be0a575fdba573d60a42d940228bceff%40%3Cnotifications.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/re0cacd3fb337cdf8469853913ed2b4ddd8f8bfc52ff0ddbe61c1dfba%40%3Ccommits.ofbiz.apache.org%3E>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7HHWJRFXZ3PTKLJCOM7WJEYZFKFWMNSV/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MDJKJQOMVFDFIDS27OQJXNOYHV2O273D/>
- <https://www.oracle.com/security-alerts/cpuoct2021.html>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://www.oracle.com/security-alerts/cpuapr2022.html>
- <https://www.oracle.com/security-alerts/cpujul2022.html>
- <https://ubuntu.com/security/CVE-2021-31812>
- <https://www.openwall.com/lists/oss-security/2021/06/12/1>
- <https://lists.apache.org/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e@%3Cusers.pdfbox.apache.org%3E>
- <https://lists.apache.org/thread.html/rf251f6c358087107f8c23473468b279d59d50a75db6b4768165c78d3@%3Cannounce.apache.org%3E>

---

Data as of 2026-12-05T06:49:44.993Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
