5.3medium
Apache POI: parsing OOXML based files (xlsx, docx, etc.), poi-ooxml could read unexpected data if underlying zip has duplicate zip entry names
- Severity
- 5.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.38% (higher than 72% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-gmg8-593g-7mv3
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
| Product or package | Versions | Reported by |
|---|---|---|
| org.apache.poi:poi-ooxml | before 5.4.0 | CVE List |
| org.apache.poi:poi-ooxml (Maven) | before 5.4.0 | GitHub Advisory Database |
| apache poi | before 5.4.0 | NVD |
| netapp active_iq_unified_manager | Not specified | NVD |
All scores
| CISA-ADP | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | medium CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Vulnerabilidad de validación de entrada incorrecta en Apache POI. El problema afecta al análisis de archivos con formato OOXML como xlsx, docx y pptx. Estos formatos de archivo son básicamente archivos zip y es posible que usuarios maliciosos agreguen entradas zip con nombres duplicados (incluida la ruta) al archivo zip. En este caso, los productos que lean el archivo afectado podrían leer datos diferentes, ya que se selecciona una de las entradas zip con el nombre duplicado en lugar de otra, pero otros productos podrían elegir una entrada zip diferente. Este problema afecta a Apache POI poi-ooxml anterior a la versión 5.4.0. poi-ooxml 5.4.0 tiene una comprobación que genera una excepción si se encuentran entradas zip con nombres de archivo duplicados en el archivo de entrada. Se recomienda a los usuarios actualizar a la versión poi-ooxml 5.4.0, que soluciona el problema. Consulte https://poi.apache.org/security.html para obtener recomendaciones sobre cómo usar las bibliotecas de POI de forma segura.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-31672 changed 2025-05-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gmg8-593g-7mv3 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-31672 changed 2026-06-17 | Public domain |