Vulnerabilities in pkg:maven/io.minio/minio

PACKAGE
Advisory Identifier: GHSA-h7rh-xfpj-hpcm
Advisory Summary

CVE-2025-59952 is a HIGH minio java client xml tag vulnerability (CWE-91: XML Injection (aka Blind XPath Injection)) affecting Minio libraries in the Maven ecosystem. The issue involves minio java client xml tag value substitution vulnerability. Remediation is available by upgrading affected packages to version 8.6.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.minio/minio

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.minio/minio. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-h7rh-xfpj-hpcm CVE-2025-59952 HIGH MinIO Java Client XML Tag Value Substitution Vulnerability

CVE-2025-59952 at a Glance

CVE Identifier CVE-2025-59952
GHSA Identifier GHSA-h7rh-xfpj-hpcm
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-91: XML Injection (aka Blind XPath Injection)
Affected Product Minio
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-59952

To remediate this vulnerability, upgrade all affected Minio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.minio:minio fixed: 8.6.0
<dependency>
    <groupId>io.minio</groupId>
    <artifactId>minio</artifactId>
    <version>8.6.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.minio

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-59952, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.minio

Analyze the terminal output to locate any version of Minio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.6.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.minio command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-91: XML Injection (aka Blind XPath Injection), where the product does not properly neutralize special elements that are used in xml, allowing attackers to modify the syntax, content, or commands of the xml before it is processed by an end system. In Minio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

#### Description In minio-java versions prior to 8.6.0, XML tag values containing references to system properties or environment variables were automatically substituted with their actual values during processing. This unintended behavior could lead to the exposure of sensitive information, including credentials, file paths, or system configuration details, if such references were present in XML content from untrusted sources. #### Affected Versions - minio-java < 8.6.0 All applications utilizing affected versions of minio-java for parsing XML with potentially untrusted input are vulnerable. #### Impact This vulnerability poses a high risk of information disclosure. Attackers could craft malicious XML inputs to extract sensitive data from the system's properties or environment variables, potentially compromising security in applications relying on minio-java for object storage operations. #### Patches The issue is resolved in minio-java version 8.6.0 and later. In these versions, automatic substitution of XML tag values with system properties or environment variables has been disabled. Users are strongly advised to upgrade to minio-java 8.6.0 or a newer release to mitigate the vulnerability. #### Workarounds No full workarounds exist without upgrading the library. As interim measures: - Refrain from processing XML data from untrusted or external sources. - Implement input sanitization or validation to detect and remove references to system properties or environment variables in XML content.

CVE-2025-59952 Affected Minio Versions

1 component(s)
Fixed Versions:
8.6.0
Product / Package Ecosystem Affected Versions Fixed Version
io.minio:minio
Maven
< 8.6.0
8.6.0

References

Frequently Asked Questions

What is CVE-2025-59952?
CVE-2025-59952 is a security vulnerability in Minio involving MinIO Java Client XML Tag Value Substitution Vulnerability under CWE-91: XML Injection (aka Blind XPath Injection).
Which Minio versions are affected?
Affected versions include releases prior to 8.6.0 across affected packages: io.minio:minio.
What version fixes CVE-2025-59952?
Upgrading to 8.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is minio affected?
Yes, io.minio:minio is affected in releases prior to 8.6.0. Upgrade your dependency to 8.6.0 or later.
What CWE is associated with CVE-2025-59952?
CVE-2025-59952 is classified under CWE-91: XML Injection (aka Blind XPath Injection) (The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.).
How can I check Maven dependencies for CVE-2025-59952?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.minio'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h7rh-xfpj-hpcm",
  "modified" : "2025-09-30T15:14:27Z",
  "published" : "2025-09-29T17:53:31Z",
  "aliases" : [ "CVE-2025-59952" ],
  "summary" : "MinIO Java Client XML Tag Value Substitution Vulnerability",
  "details" : "#### Description\nIn minio-java versions prior to 8.6.0, XML tag values containing references to system properties or environment variables were automatically substituted with their actual values during processing. This unintended behavior could lead to the exposure of sensitive information, including credentials, file paths, or system configuration details, if such references were present in XML content from untrusted sources.\n\n#### Affected Versions\n- minio-java < 8.6.0\n\nAll applications utilizing affected versions of minio-java for parsing XML with potentially untrusted input are vulnerable.\n\n#### Impact\nThis vulnerability poses a high risk of information disclosure. Attackers could craft malicious XML inputs to extract sensitive data from the system's properties or environment variables, potentially compromising security in applications relying on minio-java for object storage operations.\n\n#### Patches\nThe issue is resolved in minio-java version 8.6.0 and later. In these versions, automatic substitution of XML tag values with system properties or environment variables has been disabled.\n\nUsers are strongly advised to upgrade to minio-java 8.6.0 or a newer release to mitigate the vulnerability.\n\n#### Workarounds\nNo full workarounds exist without upgrading the library. As interim measures:\n\n- Refrain from processing XML data from untrusted or external sources.\n- Implement input sanitization or validation to detect and remove references to \n  system properties or environment variables in XML content.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.minio:minio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/minio/minio-java/security/advisories/GHSA-h7rh-xfpj-hpcm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59952"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/minio/minio-java/commit/f7a98d06b25e5464bdd4811b044e25ff9101d37f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/minio/minio-java"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/minio/minio-java/releases/tag/8.6.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-91" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-29T17:53:31Z",
    "nvd_published_at" : "2025-09-30T04:43:46Z"
  }
}