Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-31672 EUVD-2025-10668GHSA-gmg8-593g-7mv3

Apache POI: parsing OOXML based files (xlsx, docx, etc.), poi-ooxml could read unexpected data if underlying zip has duplicate zip entry names

Published Apr 9, 2025 · Updated May 23, 2025 · Assigned by apache

Description

Improper Input Validation vulnerability in Apache POI. The issue affects the parsing of OOXML format files like xlsx, docx and pptx. These file formats are basically zip files and it is possible for malicious users to add zip entries with duplicate names (including the path) in the zip. In this case, products reading the affected file could read different data because 1 of the zip entries with the duplicate name is selected over another but different products may choose a different zip entry.
This issue affects Apache POI poi-ooxml before 5.4.0. poi-ooxml 5.4.0 has a check that throws an exception if zip entries with duplicate file names are found in the input file.
Users are recommended to upgrade to version poi-ooxml 5.4.0, which fixes the issue. Please read https://poi.apache.org/security.html for recommendations about how to use the POI libraries securely.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache POI < 5.4.0 5.4.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libapache-poi-java No fix yet —
Debian 13 libapache-poi-java No fix yet —
Debian 12 libapache-poi-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libapache-poi-java No fix yet —
Ubuntu 26.04 LTS libapache-poi-java No fix yet —
Ubuntu 25.10 libapache-poi-java No fix yet —
Ubuntu 24.04 LTS libapache-poi-java No fix yet —
Ubuntu 22.04 LTS libapache-poi-java No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libapache-poi-java No fix yet —
Ubuntu 18.04 LTS libapache-poi-java No fix yet —
Ubuntu 16.04 LTS libapache-poi-java No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling opensearch-2 2.19.1-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.poi:poi-ooxml < 5.4.0 5.4.0 GHSA-gmg8-593g-7mv3

Advisories 22

References