Skip to content
Fencer Vulns
medium 5.5

CVE-2021-27906 json

A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file

published 2021-03-19 5 y ago modified 2026-06-17 4 mo ago also GHSA-6vqp-h455-42mr , EUVD-2021-0975

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.3%
EPSS 3.3% chance of exploitation in 30 days, percentile 88%
public exploits
0
none known

Summary

A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file. This issue affects Apache PDFBox version 2.0.22 and prior 2.0.x versions.

Patch / fix

  • maven org.apache.pdfbox:pdfbox 2.0.23
  • oracle hyperion_infrastructure_technology 11.2.8.0
  • libpdfbox2-java Debian 14, Debian 13, Debian 12 2.0.23-1

debian advisories DEBIAN-CVE-2021-27906

Vendor 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-27906 updated cvss 5.5

pdfbox: OutOfMemory-Exception while loading a crafted PDF file

  • Red Hat BPM Suite 6 pdfbox pdfbox
    affected: no fix planned “Out of support scope”
  • Red Hat Integration Camel K 1 pdfbox pdfbox
    affected: 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 pdfbox
    affected: no fix planned “Out of support scope”
  • Red Hat Fuse 7.9
    fixed: vendor fix RHSA-2021:3140
  • Red Hat Integration
    fixed: vendor fix RHSA-2021:3205
  • Red Hat Integration Camel Quarkus 1 pdfbox pdfbox
    not affected: vulnerable code not present

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.34% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).

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.23
2.0.23

Affected products

  • Apache Software Foundation Apache PDFBox

Classification

Weakness
  • CWE-789 Memory Allocation with Excessive Size Value

References

Sources

Fencer Vulns 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.