CVE-2021-31812 json
A carefully crafted PDF file can trigger an infinite loop while loading the file
published 5y ago modified 4mo ago also GHSA-7grw-6pjh-jpc9 , EUVD-2021-1279
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.1%
- EPSS 3.1% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.pdfbox:pdfbox 2.0.24
- maven org.apache.pdfbox:pdfbox-parent 2.0.24
- Apache Software Foundation Apache PDFBox 2.0.24
- libpdfbox2-java Debian 14, Debian 13, Debian 12 2.0.24-1
debian advisories DEBIAN-CVE-2021-31812
Is CVE-2021-31812 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-31812 updated cvss 5.5
pdfbox: infinite loop while loading a crafted PDF file
-
Red Hat BPM Suite 6 pdfbox pdfboxaffected: no fix planned “Out of support scope”
-
Red Hat Fuse 7 pdfbox pdfboxaffected: no fix available “Fix deferred”
-
Red Hat Integration Camel K 1 pdfbox pdfboxaffected: no fix available
-
Red Hat JBoss BRMS 6 pdfbox pdfbox Red Hat JBoss Data Virtualization 6 pdfbox pdfbox Red Hat JBoss Fuse 6 pdfbox pdfbox Red Hat JBoss Fuse Service Works 6 pdfbox pdfboxaffected: no fix planned “Out of support scope”
-
Red Hat Integrationfixed: vendor fix RHSA-2021:4918
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.05% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.pdfbox:pdfbox | >=2.0.0, <2.0.24 |
2.0.24 |
| maven | org.apache.pdfbox:pdfbox-parent | >=2.0.0, <2.0.24 |
2.0.24 |
Affected products
- Apache Software Foundation Apache PDFBox
Classification
References
-
oracle.com
/security-alerts/cpuoct2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujan2022.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/7HHWJRFXZ3PTKLJCOM7WJEYZFKFWMNSV/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/MDJKJQOMVFDFIDS27OQJXNOYHV2O273D/
vendor-advisory
-
lists.apache.org
/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e%40%3Cusers.pdfbox.apache.org%3E
mailing-list, web, vendor-advisory
-
lists.apache.org
/thread.html/rf251f6c358087107f8c23473468b279d59d50a75db6b4768165c78d3%40%3Cannounce.apache.org%3E
mailing-list
-
openwall.com
/lists/oss-security/2021/06/12/1
mailing-list, web, third-party-advisory
-
lists.apache.org
/thread.html/rfe26bcaba564deb505c32711ba68df7ec589797dcd96ff3389a8aaba%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rd4b6db6c3b8ab3c70f1c3bbd725a40920896453ffc2744ade6afd9fb%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r143fd8445e0e778f4a85187bd79438630b96b8040e9401751fdb8aea%40%3Ccommits.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r179cc3b6822c167702ab35fe36093d5da4c99af44238c8a754c6860f%40%3Ccommits.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r2090789e4dcc2c87aacbd87d5f18e2d64dcb9f6eb7c47f5cf7d293cb%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r132e9dbbe0ebdc08b39583d8be0a575fdba573d60a42d940228bceff%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/re0cacd3fb337cdf8469853913ed2b4ddd8f8bfc52ff0ddbe61c1dfba%40%3Ccommits.ofbiz.apache.org%3E
mailing-list
-
oracle.com
/security-alerts/cpujul2022.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-31812
advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/MDJKJQOMVFDFIDS27OQJXNOYHV2O273D
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/7HHWJRFXZ3PTKLJCOM7WJEYZFKFWMNSV
web
-
lists.apache.org
/thread.html/rfe26bcaba564deb505c32711ba68df7ec589797dcd96ff3389a8aaba@%3Cnotifications.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/rf251f6c358087107f8c23473468b279d59d50a75db6b4768165c78d3@%3Cannounce.apache.org%3E
web
-
lists.apache.org
/thread.html/re0cacd3fb337cdf8469853913ed2b4ddd8f8bfc52ff0ddbe61c1dfba@%3Ccommits.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/rd4b6db6c3b8ab3c70f1c3bbd725a40920896453ffc2744ade6afd9fb@%3Cnotifications.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e@%3Cusers.pdfbox.apache.org%3E
web
-
lists.apache.org
/thread.html/r2090789e4dcc2c87aacbd87d5f18e2d64dcb9f6eb7c47f5cf7d293cb@%3Cnotifications.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r179cc3b6822c167702ab35fe36093d5da4c99af44238c8a754c6860f@%3Ccommits.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r143fd8445e0e778f4a85187bd79438630b96b8040e9401751fdb8aea@%3Ccommits.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r132e9dbbe0ebdc08b39583d8be0a575fdba573d60a42d940228bceff@%3Cnotifications.ofbiz.apache.org%3E
web
Sources
- CVE List CVE-2021-31812
- GitHub Advisory GHSA-7grw-6pjh-jpc9
- NVD CVE-2021-31812
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.