Every CVE Search/ Get API key

CVE-2021-27906

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

5.5 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

3.34%Down 7.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 5.5

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.

Record
CVE-2021-27906
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-789
Updated
2026-11-02
CVE List No score

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

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.

Record
CVE-2021-27906
Weakness
CWE-789
Updated
2026-11-02
EUVDEUVD-2021-0975 0.0

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.

Record
EUVD-2021-0975
CVSS
0.0 NoneCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-6vqp-h455-42mr 5.5

Uncontrolled Memory Allocation 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.22 and prior 2.0.x versions.

Record
GHSA-6vqp-h455-42mr
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-789
Updated
2026-11-02
OSV 5.5

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.

Record
CVE-2021-27906
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-27906 5.5

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.

Record
DEBIAN-CVE-2021-27906
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 5 moreShow less
OSVGHSA-6vqp-h455-42mr 5.5

Uncontrolled Memory Allocation 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.22 and prior 2.0.x versions.

Record
GHSA-6vqp-h455-42mr
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-789
Updated
2026-11-02
OSVOESA-2021-1160 5.5

pdfbox security update

Apache PDFBox is an open source Java PDF library for working with PDF documents. This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents. Apache PDFBox also includes several command line utilities. Apache PDFBox is published under the Apache License v2.0.

Security Fix(es):

A carefully crafted PDF file can trigger an infinite loop while loading the file. This issue affects Apache PDFBox version 2.0.22 and prior 2.0.x versions.(CVE-2021-27807)

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.(CVE-2021-27906)

Record
OESA-2021-1160
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-27906 5.5

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.

Record
UBUNTU-CVE-2021-27906
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2021-0184 No score

Updated pdfbox packages fix security vulnerabilities

A carefully crafted PDF file can trigger an infinite loop while loading the file. This issue affects Apache PDFBox Apache PDFBox version 2.0.22 and prior 2.0.x versions (CVE-2021-27807).

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

Record
MGASA-2021-0184
Updated
2026-11-02
OSVopenSUSE-SU-2024:10622-1 No score

apache-pdfbox-2.0.23-1.3 on GA media

These are all security issues fixed in the apache-pdfbox-2.0.23-1.3 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10622-1
Updated
2026-11-02

Affected products

Show 8 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
org.apache.pdfbox:pdfbox
Maven
2.0.0 up to 2.0.23
2.0.23
libpdfbox2-java
Debian:12
before 2.0.23-1
2.0.23-1
libpdfbox2-java
Debian:13
before 2.0.23-1
2.0.23-1
libpdfbox2-java
Debian:14
before 2.0.23-1
2.0.23-1
org.apache.pdfbox:pdfbox
Maven
2.0.0 up to 2.0.23, plus listed versions
2.0.12.0.102.0.112.0.122.0.13
Show 17 moreShow less
2.0.142.0.152.0.162.0.172.0.182.0.192.0.22.0.202.0.212.0.222.0.32.0.42.0.52.0.62.0.72.0.82.0.9
2.0.23
pdfbox
Mageia:8
From an advisory covering 2 CVEs
before 2.0.23-1.mga8
2.0.23-1.mga8
pdfbox
openEuler:20.03-LTS-SP1
From an advisory covering 2 CVEs
before 2.0.23-1.oe1
2.0.23-1.oe1
libpdfbox-java
Ubuntu:16.04:LTS
All versions, plus listed versions
1:1.8.7+dfsg-11:1.8.10-11:1.8.10-21:1.8.11+dfsg-1
None known
libpdfbox-java
Ubuntu:18.04:LTS
All versions, plus listed versions
1:1.8.13-11:1.8.13-21:1.8.16-2~18.04
None known
libpdfbox2-java
Ubuntu:18.04:LTS
All versions, plus listed versions
2.0.7-12.0.8-12.0.8-22.0.9-12.0.13-2~18.04
None known
Show 12 moreShow less
Affected packages
PackageAffectedFixed
libpdfbox-java
Ubuntu:20.04:LTS
All versions, plus listed versions
1:1.8.16-2
None known
libpdfbox2-java
Ubuntu:20.04:LTS
All versions, plus listed versions
2.0.16-12.0.17-12.0.18-1
None known
libpdfbox-java
Ubuntu:22.04:LTS
All versions, plus listed versions
1:1.8.16-2
None known
libpdfbox2-java
Ubuntu:22.04:LTS
All versions, plus listed versions
2.0.23-12.0.24-22.0.25-1
None known
libpdfbox-java
Ubuntu:24.04:LTS
All versions, plus listed versions
1:1.8.16-41:1.8.16-5
None known
libpdfbox2-java
Ubuntu:24.04:LTS
All versions, plus listed versions
2.0.27-22.0.29-1
None known
libpdfbox-java
Ubuntu:25.10
All versions, plus listed versions
1:1.8.16-5
None known
libpdfbox2-java
Ubuntu:25.10
All versions, plus listed versions
2.0.29-1
None known
libpdfbox-java
Ubuntu:26.10
All versions, plus listed versions
1:1.8.16-5
None known
libpdfbox2-java
Ubuntu:26.10
All versions, plus listed versions
2.0.29-1
None known
libpdfbox-java
Ubuntu:26.04:LTS
All versions, plus listed versions
1:1.8.16-5
None known
libpdfbox2-java
Ubuntu:26.04:LTS
All versions, plus listed versions
2.0.29-1
None known

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-27906 is a medium vulnerability (CVSS 5.5) in Apache Pdfbox, published March 19, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.34%, the 88th percentile. Fixed in org.apache.pdfbox:pdfbox 2.0.23.

References

Show 49 moreShow less
MoveEnter Open