CVE-2025-31672
No exploitation reported by the sources we read.
- Published2025-04-09
- Fixed in5.4.0
- WeaknessCWE-20
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-04-0912:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.4 | < 5.4.0 | 5.4.0 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache POIother versions: not affected
package org.apache.poi:poi-ooxmlhttps://repo.maven.apache.org/maven2
Affected- < 5.4.0fixed in 5.4.0semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-04-09
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- elasticsearch-8.15MinimOSall versions · no fixed version listedand 2 other packages
- libapache-poi-javaUbuntu:26.10all versions · no fixed version listed
- libapache-poi-javaUbuntu:26.04:LTSall versions · no fixed version listed
- libapache-poi-javaUbuntu:25.10all versions · no fixed version listed
- libapache-poi-javaUbuntu:24.04:LTSall versions · no fixed version listed
- libapache-poi-javaUbuntu:22.04:LTSall versions · no fixed version listed
- libapache-poi-javaUbuntu:20.04:LTSall versions · no fixed version listed
- libapache-poi-javaUbuntu:18.04:LTSall versions · no fixed version listed
14 more package ranges on OSV.dev
Vendor advisories
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
poi-ooxml as a component of Logging Subsystem for Red Hat OpenShift · poi-ooxml as a component of Red Hat build of Apicurio Registry 3 · poi-ooxml as a component of Red Hat build of OptaPlanner 8 · +8 more
Fix
- Update Apache poi to 5.4.0
- Workaround from the vendor Red Hat Product Security CVE-2025-31672 · 11 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- No fix available, says the vendor Red Hat Product Security CVE-2025-31672 · 11 productsFix deferred
Advisories and patches
- lists.apache.orgVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2025-04-18
- CISA-ADPCVSS 3.15.32025-04-18
- CNAweakness (CWE)CWE-20known since 2026-10-23
- FIRST EPSSEPSS score1.4 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2025-04-10
Identifiers
- CGA-23hx-xhcp-6f2fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2frp-5g99-w94jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2gvw-673w-pwpfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2j8w-hxvg-4q8rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2pjm-pw45-mj2gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2q9j-wwqw-mpm2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2xv6-qrjv-w63vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3m7p-234v-v44msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3pr2-xvqj-w4xgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3v42-rmwr-vpcmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4g6f-9v9f-m8x3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4p8f-gw95-p487same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4pj5-fp9c-jww8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5c9g-w4g4-6q5psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5cvf-c865-x9q7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5jwf-493r-g3g5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5pfp-fmc9-vhf3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5v85-85qh-6hwfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-684x-q644-h224same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6fmf-x5xm-29xxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6fr6-4985-g545same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6pcc-qm33-64grsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6wrv-xfwm-9h55same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6xrv-fpg5-7g8gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-798p-m88x-fv89same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7r2v-v5qq-cfhgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7w43-rg49-cwgcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-86rp-964r-cq3fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8c79-gjx4-mg5xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8gg2-h22h-fcxvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8hr6-hvg7-xwx2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8q6h-5v9q-mqwrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-937x-xgw3-w7rqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9535-wvcf-q284same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9r5p-6jj8-7qgpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9wqw-45p7-23rqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c52h-545h-jxhxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c62c-cx5c-c466same flawChainguard · CC-BY-NC-ND-4.0
- CGA-c7m3-6662-w9rmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cff3-qfwx-4prxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cm4w-2w7p-v36wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cw6r-63w2-7p28same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f4mr-3wmv-9jggsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f5pc-85g9-qv8rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f65q-m5g9-vqwgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f6r3-97h9-jc7jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fg22-2q6p-j2mrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fj56-2395-vq2jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fxqp-32mv-h5c6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gf88-qc5c-942psame flawChainguard · CC-BY-NC-ND-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Published
- 2025-04-09
- Last modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub advisory
- GHSA-gmg8-593g-7mv3
Frequently asked questions
What is CVE-2025-31672?
Is CVE-2025-31672 actively exploited?
What is the CVSS score for CVE-2025-31672?
Running poi-ooxml? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-gmg8-593g-7mv3
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0