Vulnerability · Published Mar 19, 2021 · Assigned by apache
CVE-2021-27906A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file
Medium 5.5
In plain English
A medium-severity security flaw in Apache PDFBox from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.3% (higher than 89% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)3.3%top 11.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libpdfbox2-java | 2.0.23-1 | DEBIAN-CVE-2021-27906 |
| Debian:13 | libpdfbox2-java | 2.0.23-1 | DEBIAN-CVE-2021-27906 |
| Debian:14 | libpdfbox2-java | 2.0.23-1 | DEBIAN-CVE-2021-27906 |
| Maven | org.apache.pdfbox:pdfbox | 2.0.23 | GHSA-6vqp-h455-42mr |
| Ubuntu:22.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:24.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:25.10 | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:26.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:26.10 | libpdfbox-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:22.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:24.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:25.10 | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:26.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-27906 |
| Ubuntu:26.10 | libpdfbox2-java | no fix listed | UBUNTU-CVE-2021-27906 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache PDFBox | Apache PDFBox – through 2.0.22 |
Weakness: CWE-789
References
- https://lists.apache.org/thread.html/rf35026148ccc0e1af133501c0d003d052883fcc65107b3ff5d3b61cd%40%3Cusers.pdfbox.apache.org%3E x_refsource_MISC
- [oss-security] 20210319 CVE-2021-27906: Apache PDFBox: A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file mailing-list, x_refsource_MLIST
- [announce] 20210320 CVE-2021-27906: Apache PDFBox: a carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file mailing-list, x_refsource_MLIST
- [pdfbox-users] 20210320 CVE-2021-27906: Apache PDFBox: a carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file mailing-list, x_refsource_MLIST
- [ofbiz-commits] 20210321 [ofbiz-framework] branch trunk updated: Fixed: Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 (OFBIZ-12205) mailing-list, x_refsource_MLIST
- [ofbiz-notifications] 20210321 [jira] [Created] (OFBIZ-12205) Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 mailing-list, x_refsource_MLIST
- [ofbiz-notifications] 20210321 [jira] [Commented] (OFBIZ-12205) Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 mailing-list, x_refsource_MLIST
- [ofbiz-notifications] 20210321 [jira] [Updated] (OFBIZ-12205) Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 mailing-list, x_refsource_MLIST
- [ofbiz-commits] 20210321 [ofbiz-framework] branch release17.12 updated: Fixed: Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 (OFBIZ-12205) mailing-list, x_refsource_MLIST
- [ofbiz-notifications] 20210321 [jira] [Closed] (OFBIZ-12205) Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 mailing-list, x_refsource_MLIST
- [ofbiz-commits] 20210321 [ofbiz-framework] branch release18.12 updated: Fixed: Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 (OFBIZ-12205) mailing-list, x_refsource_MLIST
- [pdfbox-dev] 20210322 OSS-Fuzz integration mailing-list, x_refsource_MLIST
- FEDORA-2021-93469e0030 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-8b17a2725e vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-dc83ae690a vendor-advisory, x_refsource_FEDORA
- [ofbiz-notifications] 20210405 [jira] [Updated] (OFBIZ-12205) Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 mailing-list, x_refsource_MLIST
- [james-notifications] 20210501 [GitHub] [james-project] chibenwa opened a new pull request #414: [UPGRADE] Adopt Apache Tika 1.26 mailing-list, x_refsource_MLIST
- [pdfbox-dev] 20210518 CVE's mailing-list, x_refsource_MLIST
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC