CVE-2025-46762: Apache Parquet Java Potential Malicious Code Execution From Vulnerability

HIGH
Advisory Identifier: GHSA-53wx-pr6q-m3j5
CWE-73
Published
Advisory Summary

CVE-2025-46762 is a HIGH potential malicious code execution from vulnerability (CWE-73: External Control of File Name or Path) affecting Apache Parquet Java libraries in the Maven ecosystem. The issue involves potential malicious code execution from trusted packages in the parquet-avro module when reading an avro schema from a parquet file metadata. Remediation is available by upgrading affected packages to version 1.15.2.

CVE-2025-46762 at a Glance

CVE Identifier CVE-2025-46762
GHSA Identifier GHSA-53wx-pr6q-m3j5
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-73: External Control of File Name or Path
Affected Product Apache Parquet Java
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-46762

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

org.apache.parquet:parquet-avro fixed: 1.15.2
<dependency>
    <groupId>org.apache.parquet</groupId>
    <artifactId>parquet-avro</artifactId>
    <version>1.15.2</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=org.apache.parquet

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.parquet

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

Note: The mvn dependency:tree -Dincludes=org.apache.parquet 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-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. In Apache Parquet Java, 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

Schema parsing in the parquet-avro module of Apache Parquet 1.15.0 and previous versions allows bad actors to execute arbitrary code. While 1.15.1 introduced a fix to restrict untrusted packages, the default setting of trusted packages still allows malicious classes from these packages to be executed. The exploit is only applicable if the client code of parquet-avro uses the "specific" or the "reflect" models deliberately for reading Parquet files. ("generic" model is not impacted) Users are recommended to upgrade to 1.15.2 or set the system property "org.apache.parquet.avro.SERIALIZABLE_PACKAGES" to an empty string on 1.15.1. Both are sufficient to fix the issue.

CVE-2025-46762 Affected Apache Parquet Java Versions

1 component(s)
Fixed Versions:
1.15.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.parquet:parquet-avro
Maven
< 1.15.2
1.15.2

References

Frequently Asked Questions

What is CVE-2025-46762?
CVE-2025-46762 is a security vulnerability in Apache Parquet Java involving Potential malicious code execution from trusted packages in the parquet-avro module when reading an Avro schema from a Parquet file metadata under CWE-73: External Control of File Name or Path.
Which Apache Parquet Java versions are affected?
Affected versions include releases prior to 1.15.2 across affected packages: org.apache.parquet:parquet-avro.
What version fixes CVE-2025-46762?
Upgrading to 1.15.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is parquet-avro affected?
Yes, org.apache.parquet:parquet-avro is affected in releases prior to 1.15.2. Upgrade your dependency to 1.15.2 or later.
What CWE is associated with CVE-2025-46762?
CVE-2025-46762 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check Maven dependencies for CVE-2025-46762?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.parquet'. 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-53wx-pr6q-m3j5",
  "modified" : "2025-05-06T16:46:15Z",
  "published" : "2025-05-06T12:30:23Z",
  "aliases" : [ "CVE-2025-46762" ],
  "summary" : "Apache Parquet Java: Potential malicious code execution from trusted packages in the parquet-avro module when reading an Avro schema from a Parquet file metadata",
  "details" : "Schema parsing in the parquet-avro module of Apache Parquet 1.15.0 and previous versions allows bad actors to execute arbitrary code.\n\nWhile 1.15.1 introduced a fix to restrict untrusted packages, the default setting of trusted packages still allows malicious classes from these packages to be executed.\n\nThe exploit is only applicable if the client code of parquet-avro uses the \"specific\" or the \"reflect\" models deliberately for reading Parquet files. (\"generic\" model is not impacted)\n\nUsers are recommended to upgrade to 1.15.2 or set the system property \"org.apache.parquet.avro.SERIALIZABLE_PACKAGES\" to an empty string on 1.15.1. Both are sufficient to fix the issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:L/VI:H/VA:H/SC:L/SI:H/SA:H/S:N/RE:M/U:Amber"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.parquet:parquet-avro"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.15.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-46762"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/parquet-java"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/AVRO-3985"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/t7724lpvl110xsbgqwsmrdsns0rhycdp"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/05/02/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-73" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-06T16:46:15Z",
    "nvd_published_at" : "2025-05-06T10:15:16Z"
  }
}