CVE-2025-31672 Apache POI OOXML Vulnerable to Improper Input Validation in OOXML File Parsing
Attackers can craft OOXML files with duplicate zip entries to cause inconsistent data reading, potentially exposing unexpected information to applications using Apache POI.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-31672?
CVE-2025-31672 is a medium-severity vulnerability in Netapp Active Iq Unified Manager, published on 9 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-20
Which versions are affected by CVE-2025-31672?
2 open source packages ship an affected version, including org.apache.poi:poi-ooxml. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.poi:poi-ooxml Maven | All versions | 5.4.0 |
org.apache.poi:poi-ooxml Maven | All versions | 5.4.0 |
Products include Apache Poi, Netapp Active Iq Unified Manager.
How do I fix CVE-2025-31672?
Upgrade org.apache.poi:poi-ooxml to 5.4.0 or later.
Is CVE-2025-31672 being exploited?
There is no known exploitation of CVE-2025-31672 in the wild and no public exploit code.
Other vulnerabilities in Netapp Active Iq Unified Manager
- CVE-2017-12626 Denial of Service in Apache POI
- CVE-2022-26336 A carefully crafted TNEF file can cause an out of memory exception
- CVE-2019-12415 Improper Restriction of XML External Entity Reference in Apache POI
- CVE-2017-5644 Improper Restriction of Recursive Entity References in DTDs in Apache POI
- CVE-2016-5000 Apache POI's XLSX2CSV Example XML External Entity (XXE) Vulnerability
Sources
Also known as CLSA-2026-1778028244, DEBIAN-CVE-2025-31672, ECHO-35f1-f238-ebcf, GHSA-gmg8-593g-7mv3, MINI-37g9-jcvf-8jv8, MINI-c9p6-6jwc-24c3 and 2 more.