cve.bz

CVE-2021-31811

5.5 mediumEPSS 3.6%Fix available

Medium (5.5). EPSS 3.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.pdfbox:pdfbox 2.0.24.

On this page
In Apache PDFBox, a carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file. This issue affects Apache PDFBox version 2.0.23 and prior 2.0.x versions.

Severity

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
EPSS
3.6% (unchanged from 3.6% a week ago; 3.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-770 Allocation of Resources Without Limits or Throttling
CWE-789 Memory Allocation with Excessive Size Value
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-31811 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-31811?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-31811?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-31811 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache PDFBoxfrom Apache PDFBox before 2.0.24

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fg3j-q579-v8x4Mavenorg.apache.pdfbox:pdfbox>=2.0.0 <2.0.242.0.24
GHSA-fg3j-q579-v8x4Mavenorg.apache.pdfbox:pdfbox-parent>=2.0.0 <2.0.242.0.24

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libpdfbox-javano fix listedDEBIAN-CVE-2021-31811
Debian12, 13, 14libpdfbox2-java2.0.24-1DEBIAN-CVE-2021-31811
Ubuntu16.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2021-31811
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morelibpdfbox-java, libpdfbox2-javano fix listedUBUNTU-CVE-2021-31811

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat IntegrationpdfboxFixed 2021-08-18RHSA-2021:3205
Red Hat BPM Suite 6pdfboxOut of support scope
Red Hat Fuse 7pdfboxFix deferred
Red Hat JBoss BRMS 6pdfboxOut of support scope
Red Hat JBoss Data Virtualization 6pdfboxOut of support scope
Red Hat JBoss Fuse 6pdfboxOut of support scope
Red Hat JBoss Fuse Service Works 6pdfboxOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-31811.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON