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

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.38%, higher than 72% of CVEs (2026-12-01)
- Published: 2025-04-09T11:59:33.900Z
- Modified: 2026-09-10T03:50:23.912Z
- Also known as: GHSA-gmg8-593g-7mv3
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- org.apache.poi:poi-ooxml: before 5.4.0
- org.apache.poi:poi-ooxml (Maven): before 5.4.0
- apache poi: before 5.4.0
- netapp active_iq_unified_manager: no versions given

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://bz.apache.org/bugzilla/show_bug.cgi?id=69620> (issue-tracking, permissions-required, web)
- <https://lists.apache.org/thread/k14w8vcjqy4h34hh5kzldko78kpylkq5> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2025/04/08/2> (mailing-list, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20250523-0004/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31672> (advisory)
- <https://github.com/apache/poi> (package)
- <https://security.netapp.com/advisory/ntap-20250523-0004> (web)

## Sources

- CVE List: [CVE-2025-31672](https://www.cve.org/CVERecord?id=CVE-2025-31672), CVE Terms of Use, modified 2025-05-23
- GitHub Advisory Database: [GHSA-gmg8-593g-7mv3](https://github.com/advisories/GHSA-gmg8-593g-7mv3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-31672](https://nvd.nist.gov/vuln/detail/CVE-2025-31672), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31672 · Whole record: https://cve.day/CVE-2025-31672.json · Rebuilt by cve.day 2026-11-25T22:58:56.302Z
