Skip to content
Fencer Vulns
medium 5.3

CVE-2025-31672 json

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

published 2025-04-09 19 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-10668 , GHSA-gmg8-593g-7mv3

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 72%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.apache.poi:poi-ooxml 5.4.0
  • Apache Software Foundation Apache POI 5.4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-31672 updated cvss 4.4

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

  • Red Hat Logging Subsystem for Red Hat OpenShift poi-ooxml Red Hat build of Apicurio Registry 3 poi-ooxml Red Hat build of OptaPlanner 8 poi-ooxml Red Hat Fuse 7 poi-ooxml Red Hat Integration Camel K 1 poi-ooxml Red Hat JBoss Enterprise Application Platform 7 poi-ooxml
    +5 more products
    Red Hat JBoss Enterprise Application Platform 8 poi-ooxml Red Hat JBoss Enterprise Application Platform Expansion Pack poi-ooxml Red Hat Process Automation 7 poi-ooxml Red Hat streams for Apache Kafka poi-ooxml Red Hat streams for Apache Kafka 2 poi-ooxml
    affected: workaround, no fix available “Fix deferred”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

1.38% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected packages

ecosystem package affected fixed in
maven org.apache.poi:poi-ooxml
<5.4.0
5.4.0

Affected products

  • Apache Software Foundation Apache POI

Classification

Weakness
  • CWE-20 Improper Input Validation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.