CVE-2025-61677: DataChain Package Vulnerable to Deserialization of Untrusted Data
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for datachain.