Zum Hauptinhalt springen
LIVE Intel Feed
"Not a Pentest" Notice: Remediation guide for your own data pipeline infrastructure only.
Academy · CVE FeedCRITICAL · CVSS 10.0

CVE-2025-30065

Apache Parquet Java — Schema Deserialization RCE

Impact: Critical deserialization vulnerability in Apache Parquet Java ≤ 1.15.0 enables Remote Code Execution when parsing untrusted Parquet files. CVSS 10.0 — maximum criticality. Affects Apache Spark, Flink, Hive, AWS Glue and any Java/Scala application reading Parquet files. Patch to 1.15.1 immediately. Python pyarrow is NOT affected.

10.0
CVSS Score
CRITICAL
Severity
RCE
Impact
1.15.1
Fixed version

Step-by-Step Fix Runbook

1
Check if Apache Parquet Java is in your dependency tree
# Maven — check for parquet-avro or parquet-hadoop
mvn dependency:tree | grep parquet

# Gradle
./gradlew dependencies | grep parquet

# Check all JAR files in project/libs:
find . -name "parquet-*.jar" -o -name "parquet_*.jar" 2>/dev/null

# Python: check pyarrow (uses Arrow C++ not Java Parquet — not affected)
# But check if you use fastparquet:
pip show fastparquet

# Affected: Apache Parquet Java <= 1.15.0
# Check version in pom.xml / build.gradle:
grep -r "parquet" pom.xml build.gradle
2
Upgrade to Apache Parquet Java 1.15.1+
# Maven — update pom.xml:
# Change:
# <parquet.version>1.15.0</parquet.version>
# To:
# <parquet.version>1.15.1</parquet.version>

# Or update individual dependency:
# <dependency>
#   <groupId>org.apache.parquet</groupId>
#   <artifactId>parquet-avro</artifactId>
#   <version>1.15.1</version>
# </dependency>

# Then rebuild:
mvn clean package -DskipTests

# Gradle — update build.gradle:
# implementation 'org.apache.parquet:parquet-hadoop:1.15.1'
./gradlew clean build

# Verify fix:
mvn dependency:tree | grep "parquet"
# Must show 1.15.1 or higher
3
Identify all Parquet file ingestion points
# Find all code reading Parquet files — these are the attack surface:
grep -r "ParquetReader|ParquetFileReader|read_parquet|.parquet" src/ --include="*.java" --include="*.scala" --include="*.py"

# Check data pipeline tools that read Parquet:
# Apache Spark (uses Parquet internally)
# Apache Flink
# Apache Hive
# AWS Glue (uses Parquet Java)
# Databricks (uses Parquet Java)
# dbt (Python — uses pyarrow, likely not affected)

# CRITICAL: Any pipeline reading Parquet files from EXTERNAL sources
# (user uploads, external S3 buckets, third-party data feeds)
# is the highest-risk attack surface
4
Input validation for external Parquet files
// Java: validate Parquet files before processing with ParquetReader
import org.apache.parquet.hadoop.ParquetFileReader;
import org.apache.parquet.hadoop.util.HadoopInputFile;

public void safeReadParquet(Path path) throws IOException {
    // 1. Validate file size (reject oversized files)
    long fileSize = fs.getFileStatus(path).getLen();
    if (fileSize > MAX_PARQUET_FILE_SIZE) {
        throw new SecurityException("Parquet file exceeds size limit: " + fileSize);
    }

    // 2. Validate file signature (Parquet magic bytes: PAR1)
    byte[] magic = new byte[4];
    try (FSDataInputStream in = fs.open(path)) {
        in.read(magic);
    }
    if (!Arrays.equals(magic, new byte[]{'P','A','R','1'})) {
        throw new SecurityException("Invalid Parquet magic bytes — not a valid Parquet file");
    }

    // 3. Read metadata only first — catch malformed schemas before reading data
    try (ParquetFileReader reader = ParquetFileReader.open(HadoopInputFile.fromPath(path, conf))) {
        MessageType schema = reader.getFooter().getFileMetaData().getSchema();
        validateSchema(schema); // Enforce expected schema
    }

    // 4. Only then read data
    // ... ParquetReader.builder(path).build()
}
5
Isolate Parquet processing in sandboxed environment
# Run Parquet ingestion jobs in isolated containers
# with no network access and minimal filesystem permissions

# Docker — Spark Parquet job with isolation:
docker run --rm \
  --network none \
  --cap-drop ALL \
  --read-only \
  --tmpfs /tmp:size=512m \
  --memory 4g \
  --user 1000:1000 \
  -v /data/input:/input:ro \
  -v /data/output:/output:rw \
  my-spark-parquet-job:latest

# Kubernetes — restrict egress for data processing pods:
# apiVersion: networking.k8s.io/v1
# kind: NetworkPolicy
# spec:
#   podSelector: {matchLabels: {role: parquet-processor}}
#   policyTypes: [Egress]
#   egress: []  # Deny all egress — only reads local files

Frequently Asked Questions

What exactly is the vulnerability in Apache Parquet?

CVE-2025-30065 is a deserialization vulnerability in Apache Parquet Java's schema parsing. When reading a crafted Parquet file, the parser deserializes metadata objects without sufficient validation. Specifically: Parquet files can embed Avro schemas or Thrift schemas as part of their metadata. A specially crafted schema definition can trigger deserialization of attacker-controlled objects during schema parsing — before any data is read. This leads to Remote Code Execution (RCE) with the privileges of the Parquet-reading process. CVSS: 10.0 — maximum criticality.

Is Python's pyarrow or pandas read_parquet affected?

Python's pyarrow uses the Apache Arrow C++ implementation — a completely separate codebase from Apache Parquet Java. CVE-2025-30065 affects the Java implementation only. Pandas' read_parquet() uses pyarrow or fastparquet as backends — if you use the pyarrow backend (default), you are not affected by this CVE. If you use fastparquet as the backend: fastparquet is a Python-native Parquet reader, also not affected by this Java vulnerability. Bottom line: Python data scientists using pandas/pyarrow are NOT affected. Java/Scala/Spark/Flink users MUST patch.

Which Apache ecosystem tools use Parquet Java and need patching?

Must patch (use Parquet Java directly): Apache Spark 3.x, Apache Flink (ParquetFileSystem), Apache Hive, Apache Drill, Apache Impala (Java components), AWS Glue (uses Spark under the hood). Check and likely affected: Databricks (Spark-based), Azure Synapse Analytics (Spark), dbt with Spark adapter. Not affected: Python pyarrow, R arrow package, DuckDB, Polars (Rust-native readers). For Spark: the fix is bundled when you upgrade parquet-hadoop to 1.15.1 — but verify your Spark distribution's dependency management.

How do I protect data pipelines that read external Parquet files?

Defense in depth: 1) Patch to 1.15.1+ immediately — eliminates the vulnerability. 2) Schema validation: before processing, validate Parquet file schema against expected schema (reject files with unexpected fields or types). 3) Sandbox isolation: run Parquet ingestion in containers with --network none — even if RCE triggers, attacker can't reach internal services. 4) File source allowlisting: only process Parquet files from trusted sources (internal S3, known partners with verified checksums). 5) Checksum verification: verify SHA-256 of Parquet files from external partners before ingestion.

Further Resources

🔒 Quantum-Resistant Mycelium Architecture
🛡️ Kuratierte Runbooks – EU-gehostet in Frankfurt
🌐 Zero Known Breaches – Powered by Living Intelligence
🏛️ DSGVO Art. 25 & 32 • SOC 2 & ISO 27001 in Vorbereitung
⚡ Real-Time Global Mycelium Network – 347 Bedrohungen in 60 Minuten
🧬 Trusted by SecOps Leaders worldwide