pdfbox: Infinite loop in AFMParser.java allows for out of memory erros via crafted PDF
Published Jul 3, 2018
6.5
MEDIUMCVSS 3.0
EPSS 4.64%
Description
In Apache PDFBox 1.8.0 to 1.8.14 and 2.0.0RC1 to 2.0.10, a carefully crafted (or fuzzed) file can trigger an infinite loop which leads to an out of memory exception in Apache PDFBox's AFMParser.
Affected products
-
- Version 1.8.0 to 1.8.14StatusaffectedConstraints-
- Version 2.0.0RC1 to 2.0.10StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Apache Software Foundation | Apache PDFBox | n/a |
|
No data.
Red Hat JBoss Fuse 7
pdfbox
Fixed · RHSA-2018:2669
Red Hat BPM Suite 6
pdfbox
Not affected
Red Hat JBoss BRMS 6
pdfbox
Not affected
Red Hat JBoss Data Virtualization 6
pdfbox
Will not fix
Red Hat JBoss Fuse 6
pdfbox
Not affected
Red Hat JBoss Fuse Service Works 6
pdfbox
Not affected
Red Hat Satellite 5
nutch
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat JBoss Fuse 7 | pdfbox | Fixed | RHSA-2018:2669 |
| Red Hat BPM Suite 6 | pdfbox | Not affected | n/a |
| Red Hat JBoss BRMS 6 | pdfbox | Not affected | n/a |
| Red Hat JBoss Data Virtualization 6 | pdfbox | Will not fix | n/a |
| Red Hat JBoss Fuse 6 | pdfbox | Not affected | n/a |
| Red Hat JBoss Fuse Service Works 6 | pdfbox | Not affected | n/a |
| Red Hat Satellite 5 | nutch | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
While Fuse 6.3 and Fuse 7.0 ship vulnerable artifact via camel-pdfbox, however, the flawed code is not being used therefore no execution path leads to an exposure to this vulnerability, so both Fuse 6.3, 7 standalone are not affected. However, Fuse 7.0 on OpenShift ship vulnerable artifact via maven BOM, so setting Fuse 7.0 as affected for this reason only.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
AV:N/AC:M/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.64% (0.04645) | 91.44th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.83% (0.04834) | 90.83th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.36% (0.00363) | 56.22th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.66% (0.00661) | 80.33th | v3 (v2023.03.01) |
| May 3, 2024 | 0.66% (0.00661) | 79.50th | v3 (v2023.03.01) |
| Jan 3, 2024 | 0.66% (0.00661) | 77.42th | v3 (v2023.03.01) |
| Nov 8, 2023 | 0.47% (0.00466) | 72.70th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.56% (0.00558) | 74.77th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.42% (0.00418) | 70.12th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.74% (0.01742) | 76.22th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.74% (0.01742) | 53.37th | v2 (v2022.01.01) |
| Feb 3, 2022 | 4.25% (0.04249) | 74.63th | v5 (v2026.06.15) |
| Apr 14, 2021 | 4.25% (0.04249) | 0.00th | v1 |
References (16)
- http://www.openwall.com/lists/oss-security/2018/06/29/1
- https://access.redhat.com/errata/RHSA-2018:2669 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-8036 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1597490 Issue Tracking
- https://github.com/advisories/GHSA-j2xq-pfff-mvgg Advisory
- https://lists.apache.org/thread.html/9f62f742fd4fcd81654a9533b8a71349b064250840592bcd502dcfb6%40%3Cusers.pdfbox.apache.org%3E mailing-listx_refsource_MLIST
- https://lists.apache.org/thread.html/9f62f742fd4fcd81654a9533b8a71349b064250840592bcd502dcfb6@%3Cusers.pdfbox.apache.org%3E
- https://lists.apache.org/thread.html/r43491b25b2e5c368c34b106a82eff910a5cea3e90de82ad75cc16540%40%3Cdev.syncope.apache.org%3E mailing-listx_refsource_MLIST
- https://lists.apache.org/thread.html/r43491b25b2e5c368c34b106a82eff910a5cea3e90de82ad75cc16540@%3Cdev.syncope.apache.org%3E
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6HKVPTJWZGUB4MH4AAOWMRJHRDBYFHGJ/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/POPOGHJ5CVMUVCRQU7APBAN5IVZGZFDX/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6HKVPTJWZGUB4MH4AAOWMRJHRDBYFHGJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/POPOGHJ5CVMUVCRQU7APBAN5IVZGZFDX/
- https://nvd.nist.gov/vuln/detail/CVE-2018-8036
- https://www.cve.org/CVERecord?id=CVE-2018-8036
- https://www.oracle.com/security-alerts/cpuapr2020.html x_refsource_MISC
Change history (0)
No recorded changes yet.