Long Running Computation Vulnerability in Apache PDFBox (CVE-2018-11797)

libpdfbox-java Updated 02 Oct 2025

Summary

05/10/2018
N/A
Yes i
Medium
5.5

CVE-2018-11797: In Apache PDFBox 1.8.0 to 1.8.15 and 2.0.0RC1 to 2.0.11, a carefully crafted PDF file can trigger an extremely long running computation when parsing the page tree. Affects libpdfbox-java versions < 1:1.8.16-1. Fixed in 1:1.8.16-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache PDFBox is an open-source Java library that allows users to create, manipulate, and extract content from PDF documents. It is widely used for its ability to handle PDF files programmatically. However, certain versions of PDFBox are susceptible to a vulnerability that can lead to excessive computation time when processing specially crafted PDF files, impacting performance and usability.

Vulnerability Detail

CVE-2018-11797 is a vulnerability found in Apache PDFBox versions 1.8.0 to 1.8.15 and 2.0.0RC1 to 2.0.11. The flaw arises when the library attempts to parse a page tree from a maliciously crafted PDF file, which can trigger an extremely long-running computation. This can lead to denial of service conditions, as the application may become unresponsive while processing the PDF, potentially affecting user experience and system stability.

How To Fix

Minimum fixed version

1:1.8.16-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libpdfbox-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate upgrading is not feasible, consider avoiding the processing of untrusted PDF files until the upgrade can be performed. Implementing input validation to reject suspicious PDF files may also help mitigate the risk temporarily.

Conclusion

CVE-2018-11797 represents a significant vulnerability in Apache PDFBox that can lead to performance issues when processing malicious PDF files. Users are strongly advised to upgrade to the latest versions of the affected packages to mitigate the risks associated with this vulnerability.

See every vulnerability recorded for libpdfbox-java →

Share this vulnerability

FAQ

CVE-2018-11797 is a vulnerability in Apache PDFBox that allows specially crafted PDF files to cause extremely long computation times when parsed.

The affected versions are Apache PDFBox 1.8.0 to 1.8.15 and 2.0.0RC1 to 2.0.11.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can lead to denial of service conditions, where the application becomes unresponsive due to excessive computation time when processing malicious PDF files.

The CVSS score for CVE-2018-11797 is 5.5, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for libpdfbox-java.

How To Fix

Minimum fixed version

1:1.8.16-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libpdfbox-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback