CVE-2025-31672Apache POI: parsing OOXML based files (xlsx, docx, etc.), poi-ooxml could read…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libapache-poi-java | Fix pending | UBUNTU-CVE-2025-31672 | |
| Ubuntu 26.04 | libapache-poi-java | Under investigation | UBUNTU-CVE-2025-31672 | |
| Ubuntu 25.10 | libapache-poi-java | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-31672 | |
| Ubuntu 24.04 | libapache-poi-java | Under investigation | UBUNTU-CVE-2025-31672 | |
| Ubuntu 22.04 | libapache-poi-java | Under investigation | UBUNTU-CVE-2025-31672 | |
| Ubuntu 20.04 | libapache-poi-java | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-31672 | |
| Ubuntu 18.04 | libapache-poi-java | Fix pending | UBUNTU-CVE-2025-31672 | |
| Ubuntu 16.04 | libapache-poi-java | Fix pending | UBUNTU-CVE-2025-31672 | |
| Debian 14 | libapache-poi-java | Fix pending | DEBIAN-CVE-2025-31672 | |
| Debian 13 | libapache-poi-java | Fix pending | DEBIAN-CVE-2025-31672 | |
| Debian 12 | libapache-poi-java | Fix pending | DEBIAN-CVE-2025-31672 | |
| Maven library | org.apache.poi:poi-ooxml | Fixed | 5.4.0 | GHSA-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.
- Apache Software Foundation Apache POI: affected: before 5.4.0; fixed in
5.4.0
Vendor advisories:
- https://lists.apache.org/thread/k14w8vcjqy4h34hh5kzldko78kpylkq5 (vendor-advisory)
References
- https://bz.apache.org/bugzilla/show_bug.cgi?id=69620
- https://lists.apache.org/thread/k14w8vcjqy4h34hh5kzldko78kpylkq5
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.