CVE-2021-27807 json
A carefully crafted PDF file can trigger an infinite loop while loading the file
published 2021-03-19 5 y ago modified 2026-06-17 4 mo ago also GHSA-2h3j-m7gr-25xj , EUVD-2021-1242
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
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-27807
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-27807 updated cvss 5.5
pdfbox: infinite loop while loading a crafted PDF file
-
Red Hat BPM Suite 6 pdfbox pdfboxaffected: no fix planned “Out of support scope”
-
Red Hat Integration Camel K 1 pdfbox pdfboxaffected: 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 pdfboxaffected: no fix planned “Out of support scope”
-
Red Hat Fuse 7.9fixed: vendor fix RHSA-2021:3140
-
Red Hat Integrationfixed: vendor fix RHSA-2021:3205
-
Red Hat Integration Camel Quarkus 1 pdfbox pdfboxnot 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
2.99% chance of exploitation in the next 30 days, higher than 87% 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-834 Excessive Iteration
References
-
oracle.com
//security-alerts/cpujul2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuoct2021.html
web, patch, third-party-advisory
-
github.com
/apache/pdfbox/commit/5c5a837140fbb4ef78bb5ef9f29ad537c872c83e
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/6PT72QOFDXLJ7PLTN66EMG5EHPTE7TFZ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/6KDA2U4KL2N3XT3PM4ZJEBBA6JJIH2G4/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2AVLKAHFMPH72TTP25INPZPGX5FODK3H/
vendor-advisory
-
lists.apache.org
/thread.html/r818058ff1e4b9f6bef4e5a2e74faff38cb3d3885c1e2db398bc55cfb%40%3Cusers.pdfbox.apache.org%3E
mailing-list, web, vendor-advisory
-
openwall.com
/lists/oss-security/2021/03/19/9
mailing-list, web, vendor-advisory
-
lists.apache.org
/thread.html/r4717f902f8bc36d47b3fa978552a25e4ed3ddc2fffb52b94fbc4ab36%40%3Cusers.pdfbox.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r043edc5dcf9199f7f882ed7906b41cb816753766e88b8792dbf319a9%40%3Cannounce.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r1d268642f8b52456ee8f876b888b8ed7a9e9568c7770789f3ded7f9e%40%3Ccommits.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r7ee634c21816c69ce829d0c41f35afa2a53a99bdd3c7cce8644fdc0e%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/re1e35881482e07dc2be6058d9b44483457f36133cac67956686ad9b9%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rc69140d894c6a9c67a8097a25656cce59b46a5620c354ceba10543c3%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r9ffe179385637b0b5cbdabd0246118005b4b8232909d2d14cd68ccd3%40%3Ccommits.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/raa35746227f3f8d50fff1db9899524423a718f6f35cd39bd4769fa6c%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r5c8e2125d18af184c80f7a986fbe47eaf0d30457cd450133adc235ac%40%3Ccommits.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r1218e60c32829f76943ecaca79237120c2ec1ab266459d711a578b50%40%3Cdev.pdfbox.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r6e067a6d83ccb6892d0ff867bd216704f21fb0b6a854dea34be04f12%40%3Cnotifications.ofbiz.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r4cbc3f6981cd0a1a482531df9d44e4c42a7f63342a7ba78b7bff8a1b%40%3Cnotifications.james.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r54594251369e14c185da9662a5340a52afbbdf75d61c9c3a69c8f2e8%40%3Cdev.pdfbox.apache.org%3E
mailing-list
-
oracle.com
/security-alerts/cpuapr2022.html
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-27807
advisory
-
svn.apache.org
/viewvc?view=revision&revision=1886911
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/6PT72QOFDXLJ7PLTN66EMG5EHPTE7TFZ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/6KDA2U4KL2N3XT3PM4ZJEBBA6JJIH2G4
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2AVLKAHFMPH72TTP25INPZPGX5FODK3H
web
-
lists.apache.org
/thread.html/re1e35881482e07dc2be6058d9b44483457f36133cac67956686ad9b9@%3Cnotifications.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/rc69140d894c6a9c67a8097a25656cce59b46a5620c354ceba10543c3@%3Cnotifications.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/raa35746227f3f8d50fff1db9899524423a718f6f35cd39bd4769fa6c@%3Cnotifications.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r9ffe179385637b0b5cbdabd0246118005b4b8232909d2d14cd68ccd3@%3Ccommits.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r818058ff1e4b9f6bef4e5a2e74faff38cb3d3885c1e2db398bc55cfb@%3Cusers.pdfbox.apache.org%3E
web
-
lists.apache.org
/thread.html/r7ee634c21816c69ce829d0c41f35afa2a53a99bdd3c7cce8644fdc0e@%3Cnotifications.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r6e067a6d83ccb6892d0ff867bd216704f21fb0b6a854dea34be04f12@%3Cnotifications.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r5c8e2125d18af184c80f7a986fbe47eaf0d30457cd450133adc235ac@%3Ccommits.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r54594251369e14c185da9662a5340a52afbbdf75d61c9c3a69c8f2e8@%3Cdev.pdfbox.apache.org%3E
web
-
lists.apache.org
/thread.html/r4cbc3f6981cd0a1a482531df9d44e4c42a7f63342a7ba78b7bff8a1b@%3Cnotifications.james.apache.org%3E
web
-
lists.apache.org
/thread.html/r4717f902f8bc36d47b3fa978552a25e4ed3ddc2fffb52b94fbc4ab36@%3Cusers.pdfbox.apache.org%3E
web
-
lists.apache.org
/thread.html/r1d268642f8b52456ee8f876b888b8ed7a9e9568c7770789f3ded7f9e@%3Ccommits.ofbiz.apache.org%3E
web
-
lists.apache.org
/thread.html/r1218e60c32829f76943ecaca79237120c2ec1ab266459d711a578b50@%3Cdev.pdfbox.apache.org%3E
web
-
lists.apache.org
/thread.html/r043edc5dcf9199f7f882ed7906b41cb816753766e88b8792dbf319a9@%3Cannounce.apache.org%3E
web
-
issues.apache.org
/jira/browse/PDFBOX-4892
web
-
github.com
/apache/pdfbox
package
Sources
- CVE List CVE-2021-27807
- GitHub Advisory GHSA-2h3j-m7gr-25xj
- NVD CVE-2021-27807
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.