Skip to content
Heist/ feed
Back to feed
Medium

libapache-poi-java — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-31672

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.

Products
libapache-poi-java
Affected versions
3.10.1-2, 3.10.1-3, 4.0.1-1, 4.0.1-1~18.03, 4.0.1-2, 4.0.1-3, 4.0.1-4, 4.0.1-5, 4.0.1-6
Fixed versions
Not specified
CVEs
CVE-2025-31672
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:48 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-31672

core-osv · Original source

Published 9 Apr 2025, 12:15 UTC

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.

osv:UBUNTU-CVE-2025-31672

libapache-poi-java

Fixed versions: Not specified

libapache-poi-java

Fixed versions: Not specified

libapache-poi-java

Fixed versions: Not specified

libapache-poi-java

Fixed versions: Not specified

libapache-poi-java

Fixed versions: Not specified

libapache-poi-java

Fixed versions: Not specified

libapache-poi-java

Fixed versions: Not specified

libapache-poi-java

Fixed versions: Not specified

Complete source record
{
  "id": "b8be510b8d2fb1a747588c7b23a7c3011668defa42ddd88c50946de73c5f0515",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-31672",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-31672",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2025-31672",
    "products": [
      {
        "name": {
          "value": "libapache-poi-java",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.10.1-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-poi-java",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.10.1-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.1-1~18.03",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-poi-java",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-poi-java",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.0.1-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.0.1-3",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-poi-java",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.1-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.0.1-5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.0.1-6",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-poi-java",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.1-6",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-poi-java",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.1-6",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-poi-java",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.1-6",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2025-31672",
      "aliases": [
        "UBUNTU-CVE-2025-31672"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-poi-java",
            "purl": "pkg:deb/ubuntu/libapache-poi-java?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "3.10.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31672.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-poi-java",
                "binary_version": "3.10.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-poi-java",
            "purl": "pkg:deb/ubuntu/libapache-poi-java?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.10.1-3",
            "4.0.1-1~18.03"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31672.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-poi-java",
                "binary_version": "4.0.1-1~18.03"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-poi-java",
            "purl": "pkg:deb/ubuntu/libapache-poi-java?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "4.0.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31672.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-poi-java",
                "binary_version": "4.0.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-poi-java",
            "purl": "pkg:deb/ubuntu/libapache-poi-java?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "4.0.1-1",
            "4.0.1-2",
            "4.0.1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31672.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-poi-java",
                "binary_version": "4.0.1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-poi-java",
            "purl": "pkg:deb/ubuntu/libapache-poi-java?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.0.1-4",
            "4.0.1-5",
            "4.0.1-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31672.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-poi-java",
                "binary_version": "4.0.1-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-poi-java",
            "purl": "pkg:deb/ubuntu/libapache-poi-java?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.0.1-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31672.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-poi-java",
                "binary_version": "4.0.1-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-poi-java",
            "purl": "pkg:deb/ubuntu/libapache-poi-java?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.0.1-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31672.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-poi-java",
                "binary_version": "4.0.1-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-poi-java",
            "purl": "pkg:deb/ubuntu/libapache-poi-java?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.0.1-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31672.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-poi-java",
                "binary_version": "4.0.1-6"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:27.751281303Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-31672"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-31672",
        "https://www.cve.org/CVERecord?id=CVE-2025-31672",
        "https://www.openwall.com/lists/oss-security/2025/04/08/2",
        "https://bz.apache.org/bugzilla/show_bug.cgi?id=69620"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-31672",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357538,
  "published_at": "2025-04-09T12:15:00+00:00"
}