CWE
20
EPSS
0.047%
Advisory Published
CVE Published
Advisory Published
Updated

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

First published: Tue Apr 08 2025(Updated: )

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.

Credit: security@apache.org

Affected SoftwareAffected VersionHow to fix
Apache POI<5.4.0
Apache POI<5.4.0
maven/org.apache.poi:poi-ooxml<5.4.0
5.4.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-31672?

    CVE-2025-31672 is classified as a medium severity vulnerability due to improper input validation in Apache POI.

  • How do I fix CVE-2025-31672?

    To fix CVE-2025-31672, upgrade to Apache POI version 5.4.0 or later.

  • What file formats are affected by CVE-2025-31672?

    CVE-2025-31672 affects the parsing of OOXML format files including xlsx, docx, and pptx.

  • Who is impacted by CVE-2025-31672?

    Users of Apache POI versions prior to 5.4.0 are impacted by CVE-2025-31672.

  • What type of vulnerability is CVE-2025-31672?

    CVE-2025-31672 is an improper input validation vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203