CVE-2025-61677: DataChain Package Vulnerable to Deserialization of Untrusted Data

datachain Updated 03 Oct 2025

Summary

02/10/2025
Yes i
Low
2.5

CVE-2025-61677: DataChain Vulnerable to Deserialization of Untrusted Data from Environment Variables. Affects datachain versions < 0.34.2. Fixed in 0.34.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

DataChain is a Python library designed for managing and processing data workflows. It allows users to define data pipelines and manage data storage efficiently. However, the library has a critical vulnerability that arises from its handling of serialized objects from environment variables, making it susceptible to code execution attacks.

Vulnerability Detail

The vulnerability in DataChain stems from its practice of reading serialized objects from environment variables such as 'DATACHAIN__METASTORE' and 'DATACHAIN__WAREHOUSE'. An attacker who can manipulate these environment variables can execute arbitrary code when the application loads, leading to potential unauthorized access and control over the application. This issue is classified under CWE-502, which deals with deserialization of untrusted data, and has a CVSS score of 2.5, indicating a low severity but still a significant risk.

How To Fix

Latest published version: 0.62.0 as of 22 Oct 2026

pip install --upgrade "datachain==0.62.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.34.2

This is the first release that contains the fix.

pip install --upgrade "datachain==0.34.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using environment variables to pass serialized objects. Instead, consider using configuration files or secure vaults to manage sensitive data.

Conclusion

The DataChain package has a vulnerability (CVE-2025-61677) that allows for the deserialization of untrusted data from environment variables, posing a risk of code execution. Users are advised to update to version 0.34.2 or later to mitigate this risk. Additionally, using Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for datachain →

Share this vulnerability

FAQ

CVE-2025-61677 is a vulnerability in the DataChain package that allows for deserialization of untrusted data from environment variables, potentially leading to code execution.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If immediate updates are not feasible, consider using configuration files instead of environment variables to mitigate the risk temporarily.

Exploitation of this vulnerability can lead to unauthorized code execution, allowing attackers to gain control over the affected application and access sensitive data.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just the Pipfile.lock.

Related vulnerabilities

Recent vulnerabilities recorded for datachain.

How To Fix

Latest published version: 0.62.0 as of 22 Oct 2026

pip install --upgrade "datachain==0.62.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.34.2

This is the first release that contains the fix.

pip install --upgrade "datachain==0.34.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback