Vulnerability in libpdfbox-java - XML External Entity (XXE) attacks

libpdfbox-java Updated 02 Oct 2025

Summary

06/06/2016
N/A
Yes i
Unrated
Not published

DLA-505-1: libpdfbox-java - security update. Affects libpdfbox-java versions < 1:1.7.0+dfsg-4+deb7u1. Fixed in 1:1.7.0+dfsg-4+deb7u1. 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

libpdfbox-java is a Java library for working with PDF documents. It provides functionality for creating, manipulating, and extracting data from PDF files. The library is widely used in various applications that deal with PDF documents. However, a security vulnerability has been discovered in libpdfbox-java that allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted PDF. This vulnerability can lead to the disclosure of confidential data, denial of service, server-side request forgery, port scanning, and other system impacts.

Vulnerability Detail

The vulnerability in libpdfbox-java arises from improper initialization of the XML parsers. This allows attackers to exploit XML External Entity (XXE) attacks by injecting malicious XML entities into a crafted PDF. By exploiting this vulnerability, an attacker can gain unauthorized access to sensitive information, cause denial of service, forge server-side requests, and perform port scanning from the perspective of the machine where the parser is located. The impact of this vulnerability can be severe, potentially leading to data breaches and system compromise.

How To Fix

Minimum fixed version

1:1.7.0+dfsg-4+deb7u1

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 →

Conclusion

The libpdfbox-java library is vulnerable to XML External Entity (XXE) attacks, which can have severe consequences such as data disclosure and system compromise. It is crucial to upgrade to the fixed version of the libpdfbox-java package (1:1.7.0+dfsg-4+deb7u1 or later) to protect your system from this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for libpdfbox-java →

Share this vulnerability

FAQ

libpdfbox-java is a Java library for working with PDF documents. It provides functionality for creating, manipulating, and extracting data from PDF files.

An XML External Entity (XXE) attack is a type of attack where an attacker can exploit vulnerabilities in XML parsers to disclose confidential data, perform denial of service, forge server-side requests, and perform other malicious activities.

The libpdfbox-java vulnerability can be exploited by injecting malicious XML entities into a crafted PDF. This allows attackers to conduct XML External Entity (XXE) attacks and potentially gain unauthorized access to sensitive information.

The potential impacts of this vulnerability include the disclosure of confidential data, denial of service, server-side request forgery, port scanning, and other system impacts. It can lead to data breaches and compromise the security of affected systems.

To fix the libpdfbox-java vulnerability, you should upgrade the libpdfbox-java package to version 1:1.7.0+dfsg-4+deb7u1 or later. This version includes the necessary fixes to mitigate the XML External Entity (XXE) vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for libpdfbox-java.

How To Fix

Minimum fixed version

1:1.7.0+dfsg-4+deb7u1

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