CVE-2021-31812: A carefully crafted PDF file can trigger an infinite loop while loading the file
Noroxi assessment
Priority: Monitor (action score 23/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3% (FIRST EPSS); higher than 87.7% of all records.
- Someone with local access to the system can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: libpdfbox2-java (Debian:12) 2.0.24-1; org.apache.pdfbox:pdfbox (Maven) 2.0.24; org.apache.pdfbox:pdfbox-parent (Maven) 2.0.24.
- Mentioned 4 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to libpdfbox2-java (Debian:12) 2.0.24-1; org.apache.pdfbox:pdfbox (Maven) 2.0.24; org.apache.pdfbox:pdfbox-parent (Maven) 2.0.24 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jun 12, 2021
- Updated
- Jun 16, 2026
- EPSS
- 3.0% · 87th percentile
- CWE
- CWE-834
Report tools
Action score
23
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.0%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| apache | pdfbox | cpe:2.3:a:apache:pdfbox |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| oracle | banking corporate lending process management | cpe:2.3:a:oracle:banking_corporate_lending_process_management |
| oracle | banking credit facilities process management | cpe:2.3:a:oracle:banking_credit_facilities_process_management |
| oracle | banking supply chain finance | cpe:2.3:a:oracle:banking_supply_chain_finance |
| oracle | retail customer management and segmentation foundation | cpe:2.3:a:oracle:retail_customer_management_and_segmentation_foundation |
| oracle | communications messaging server | cpe:2.3:o:oracle:communications_messaging_server |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (apache). Independent of NVD's CPE analysis and usually ahead of it.
Apache Software Foundation Apache PDFBox
- Apache PDFBox and later · before 2.0.24affected
Affected versions · NVD (14)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apache pdfbox2.0.0 and later · up to 2.0.23 inclusive
- fedoraproject fedora33
- fedoraproject fedora34
- oracle banking corporate lending process management14.2.0
- oracle banking corporate lending process management14.3.0
- oracle banking corporate lending process management14.5.0
- oracle banking credit facilities process management14.2.0
- oracle banking credit facilities process management14.3.0
- oracle banking credit facilities process management14.5.0
- oracle banking supply chain finance14.2.0
- oracle banking supply chain finance14.3.0
- oracle banking supply chain finance14.5.0
- oracle communications messaging server8.1
- oracle retail customer management and segmentation foundation18.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | libpdfbox-java | from 0 | — |
| Debian:12 | libpdfbox2-java | before 2.0.24-1 | 2.0.24-1 |
| Maven | org.apache.pdfbox:pdfbox | from 2.0.0 · before 2.0.24 | 2.0.24 |
| Maven | org.apache.pdfbox:pdfbox-parent | from 2.0.0 · before 2.0.24 | 2.0.24 |
Same product
apache: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-0228Apache PDFBox 2.0.14 does not properly initialize the XML parser, which allows context-dependent attackers to conduct XML External Entity…42Plan
- CVE-2016-2175Apache PDFBox before 1.8.12 and 2.x before 2.0.1 does not properly initialize the XML parsers, which allows context-dependent attackers to…32Monitor
- CVE-2018-8036In Apache PDFBox 1.8.0 to 1.8.14 and 2.0.0RC1 to 2.0.10, a carefully crafted (or fuzzed) file can trigger an infinite loop which leads to…27Monitor
Published before and after this one in the same product
- ← EarlierCVE-2021-27906Mar 19, 2021 · A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file23Monitor
- ← EarlierCVE-2021-31811Jun 12, 2021 · A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading a tiny file23Monitor
- Later →CVE-2026-33929Apr 14, 2026 · Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code17Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:libpdfbox2-java | 2.0.24-1 · Debian:12 | Package registry (OSV) |
| Maven:org.apache.pdfbox:pdfbox | 2.0.24 | Package registry (OSV) |
| Maven:org.apache.pdfbox:pdfbox-parent | 2.0.24 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0582 · Sep 1, 2022(IBM Güvenlik Zafiyeti)
- TR-22-0105 · Feb 2, 2022(Oracle Güvenlik Zafiyeti)
- TR-21-0505 · Jun 22, 2021(Apache Güvenlik Zafiyeti)
- TR-21-0473 · Jun 14, 2021(Apache Güvenlik Zafiyeti)
Not on record for this CVE: EPSS history · patch commit or PR link · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-834 · Excessive IterationCVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (15 more)Show less
- lists.apache.org/thread.html/r132e9dbbe0ebdc08b39583d8be0a575fdba573d60a42d940228bceff%40%3Cnotifications.ofbiz.apache.org%3E
- lists.apache.org/thread.html/r143fd8445e0e778f4a85187bd79438630b96b8040e9401751fdb8aea%40%3Ccommits.ofbiz.apache.org%3E
- lists.apache.org/thread.html/r179cc3b6822c167702ab35fe36093d5da4c99af44238c8a754c6860f%40%3Ccommits.ofbiz.apache.org%3E
- lists.apache.org/thread.html/r2090789e4dcc2c87aacbd87d5f18e2d64dcb9f6eb7c47f5cf7d293cb%40%3Cnotifications.ofbiz.apache.org%3E
- lists.apache.org/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e%40%3Cusers.pdfbox.apache.org%3E
- lists.apache.org/thread.html/rd4b6db6c3b8ab3c70f1c3bbd725a40920896453ffc2744ade6afd9fb%40%3Cnotifications.ofbiz.apache.org%3E
- lists.apache.org/thread.html/re0cacd3fb337cdf8469853913ed2b4ddd8f8bfc52ff0ddbe61c1dfba%40%3Ccommits.ofbiz.apache.org%3E
- lists.apache.org/thread.html/rf251f6c358087107f8c23473468b279d59d50a75db6b4768165c78d3%40%3Cannounce.apache.org%3E
- lists.apache.org/thread.html/rfe26bcaba564deb505c32711ba68df7ec589797dcd96ff3389a8aaba%40%3Cnotifications.ofbiz.apache.org%3E
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7HHWJRFXZ3PTKLJCOM7WJEYZFKFWMNSV/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MDJKJQOMVFDFIDS27OQJXNOYHV2O273D/
- www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com/security-alerts/cpujan2022.html
- www.oracle.com/security-alerts/cpujul2022.html
- www.oracle.com/security-alerts/cpuoct2021.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.