Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.poi/poi-ooxml
  4. ›
  5. CVE-2025-31672

CVE-2025-31672: Apache POI OOXML Vulnerable to Improper Input Validation in OOXML File Parsing

April 9, 2025 (updated April 18, 2025)

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.

References

  • bz.apache.org/bugzilla/show_bug.cgi?id=69620
  • github.com/advisories/GHSA-gmg8-593g-7mv3
  • github.com/apache/poi
  • lists.apache.org/thread/k14w8vcjqy4h34hh5kzldko78kpylkq5
  • nvd.nist.gov/vuln/detail/CVE-2025-31672

Code Behaviors & Features

Detect and mitigate CVE-2025-31672 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.4.0

Fixed versions

  • 5.4.0

Solution

Upgrade to version 5.4.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

maven/org.apache.poi/poi-ooxml/CVE-2025-31672.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 00:15:12 +0000.