Critical XXE Vulnerability in libapache-poi-java: Risk of Local File Exposure

libapache-poi-java Updated 02 Oct 2025

Summary

23/10/2019
N/A
No i
Unrated
Not published

DEBIAN-CVE-2019-12415: In Apache POI up to 4.1.0, when using the tool XSSFExportToXml to convert user-provided Microsoft Excel documents, a specially crafted document can allow an attacker to read files from the local filesystem or from intern... Affects libapache-poi-java versions 4.0.1-1 – 4.0.1-6. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libapache-poi-java is a Java library used for reading and writing Microsoft Office documents, including Excel files. It provides a wide range of features for manipulating spreadsheets, making it a popular choice among developers. However, versions up to 4.1.0 are vulnerable to an XML External Entity (XXE) processing issue when using the XSSFExportToXml tool, which can lead to unauthorized access to local files or internal network resources.

Vulnerability Detail

In Apache POI versions up to 4.1.0, a vulnerability exists when the XSSFExportToXml tool processes user-provided Excel documents. An attacker can craft a malicious document that exploits XML External Entity (XXE) processing, allowing them to read files from the local filesystem or internal network resources. This vulnerability poses significant risks, including data leakage and unauthorized access to sensitive information.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid processing untrusted or user-provided Excel documents with the XSSFExportToXml tool until the package is updated. Additionally, consider disabling XML External Entity processing in your application if possible.

Conclusion

The XXE vulnerability in libapache-poi-java poses serious risks to applications that process user-provided Excel documents. It is crucial to update to a patched version to safeguard against potential data breaches and unauthorized access. Implementing workarounds and utilizing tools like Vulert can further enhance security measures.

See every vulnerability recorded for libapache-poi-java →

Share this vulnerability

FAQ

The vulnerability allows attackers to exploit XML External Entity processing, potentially leading to unauthorized file access.

All versions of libapache-poi-java up to and including 4.1.0 are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

Exploitation of this vulnerability can lead to data leakage, unauthorized access to sensitive files, and potential compromise of internal network resources.

Yes, a patched version of libapache-poi-java is available. Update to a version later than 4.1.0 to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for libapache-poi-java.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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