CVE-2018-8036: Medium severity Apache PDFBox vulnerability

Published Jun 29, 2018
·
Updated

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.

Other sources

PDFBox before versions 1.8.15 and 2.0.11 has an infinitre loop in AFMParser.java. An attacker could exploit this to cause an out of memory error via a crafted PDF.

External Reference:

http://www.openwall.com/lists/oss-security/2018/06/29/1

Upstream Release Notes:

https://www.apache.org/dist/pdfbox/2.0.11/RELEASE-NOTES.txt https://www.apache.org/dist/pdfbox/1.8.15/RELEASE-NOTES.txt

Upstream Issue:

https://issues.apache.org/jira/projects/PDFBOX/issues/PDFBOX-4251

Upstream Patches:

http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/afm/AFMParser.java?rev=1834048&r1=1834047&r2=1834048&view=diff http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/afm/AFMParser.java?rev=1834046&r1=1834045&r2=1834046&view=diff http://svn.apache.org/viewvc/pdfbox/branches/1.8/fontbox/src/main/java/org/apache/fontbox/afm/AFMParser.java?rev=1834047&r1=1834046&r2=1834047&view=diff

Red Hat

Affected Software

7 affected componentsFixes available
Apache PDFBox>1.8.0<=1.8.14
Apache PDFBox>=2.0.0<=2.0.10
Apache PDFBox=2.0.0-rc1
Apache PDFBox=2.0.0-rc2
Apache PDFBox=2.0.0-rc3
redhat/pdfbox<1.8.15
1.8.15
redhat/pdfbox<2.0.10
2.0.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/pdfbox to a version that resolves this vulnerability.

    Fixed in 1.8.15
  2. Upgrade

    Upgrade redhat/pdfbox to a version that resolves this vulnerability.

    Fixed in 2.0.10
  3. Upgrade

    Upgrade Apache PDFBox to a version that resolves this vulnerability.

    Fixed in 1.8.15
  4. Upgrade

    Upgrade Apache PDFBox to a version that resolves this vulnerability.

    Fixed in 2.0.11

Event History

Jul 3, 2018
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
DescriptionWeakness
Data Sourced
via NVD·08:29 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2018-8036.

2

What is the severity of CVE-2018-8036?

The severity of CVE-2018-8036 is medium.

3

Which software versions are affected by CVE-2018-8036?

Apache PDFBox versions 1.8.0 to 1.8.14 and 2.0.0RC1 to 2.0.10 are affected by CVE-2018-8036.

4

How can the vulnerability be exploited?

A carefully crafted (or fuzzed) file can trigger an infinite loop which leads to an out of memory exception in Apache PDFBox's AFMParser.

5

How can I fix CVE-2018-8036?

To fix CVE-2018-8036, update Apache PDFBox to version 1.8.15 or 2.0.11.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203