CVE-2025-31672
Apache POI OOXML Vulnerable to Improper Input Validation in OOXML File Parsing
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.poi » poi-ooxml | < 5.4.0 | 5.4.0 |
Blast radius
74% of the dependent artifacts (13,187) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 67,748 |
| 2 hops | 144,509 |
| 3 hops | 103,558 |
| 4 hops | 114,834 |
| 5 hops | 166,017 |
| 6 hops | 82,086 |
Most used dependents
- org.codehaus.mojo » license-maven-plugin3,293 usages
- org.cyclonedx » cyclonedx-maven-plugin686 usages
- org.dbunit » dbunit596 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.openmrs.test » openmrs-test514 usages
- com.alibaba » easyexcel481 usages
- org.apache.tika » tika-parsers480 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- info.magnolia » magnolia-core462 usages
- org.xwiki.platform » xwiki-platform-oldcore449 usages
- net.sf.jasperreports » jasperreports410 usages
- com.vaadin » vaadin378 usages
- dev.langchain4j » langchain4j374 usages
- org.apache.jackrabbit » jackrabbit-core323 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-31672
- Webhttps://bz.apache.org/bugzilla/show_bug.cgi?id=69620
- Packagehttps://github.com/apache/poi
- Webhttps://lists.apache.org/thread/k14w8vcjqy4h34hh5kzldko78kpylkq5
- Webhttps://security.netapp.com/advisory/ntap-20250523-0004
- Webhttp://www.openwall.com/lists/oss-security/2025/04/08/2
