CVEfocus › CVE database › CVE-2025-31672

CVE-2025-31672Apache POI: parsing OOXML based files (xlsx, docx, etc.), poi-ooxml could read…

CVSS 5.3 MediumEPSS 2.3% (higher than 84% of CVEs)Published 2025-04-09Updated 2025-05-23Assigner: apache

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.

CWE-20

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
6Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libapache-poi-javaFix pendingUBUNTU-CVE-2025-31672
Ubuntu 26.04libapache-poi-javaUnder investigationUBUNTU-CVE-2025-31672
Ubuntu 25.10libapache-poi-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-31672
Ubuntu 24.04libapache-poi-javaUnder investigationUBUNTU-CVE-2025-31672
Ubuntu 22.04libapache-poi-javaUnder investigationUBUNTU-CVE-2025-31672
Ubuntu 20.04libapache-poi-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-31672
Ubuntu 18.04libapache-poi-javaFix pendingUBUNTU-CVE-2025-31672
Ubuntu 16.04libapache-poi-javaFix pendingUBUNTU-CVE-2025-31672
Debian 14libapache-poi-javaFix pendingDEBIAN-CVE-2025-31672
Debian 13libapache-poi-javaFix pendingDEBIAN-CVE-2025-31672
Debian 12libapache-poi-javaFix pendingDEBIAN-CVE-2025-31672
Maven libraryorg.apache.poi:poi-ooxmlFixed5.4.0GHSA-gmg8-593g-7mv3

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.