CVE-2025-61677: DataChain Vulnerable to Deserialization of Untrusted Data from Environment Variables
The DataChain library reads serialized objects from environment variables (such as DATACHAINMETASTORE and DATACHAINWAREHOUSE) in the loader.py module. An attacker with the ability to set these environment variables can trigger code execution when the application loads.
Published Oct 2, 2025 · Updated Oct 27, 2025
Affected packages
datachain
- Ecosystem
- PyPI
- Affected
- < 0.34.2
- Fixed in
- 0.34.2
- Check
pip show datachain
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The DataChain library reads serialized objects from environment variables (such as DATACHAIN__METASTORE and DATACHAIN__WAREHOUSE) in the loader.py module. An attacker with the ability to set these environment variables can trigger code execution when the application loads.
Credited to gothburz.
References
- https://github.com/iterative/datachain/security/advisories/GHSA-6px8-mr29-cj4r
- https://github.com/iterative/datachain/pull/1358
- https://github.com/iterative/datachain/commit/914b95610620d50c8d9bee506ccbfa7d4d57fdc0
- https://nvd.nist.gov/vuln/detail/CVE-2025-61677
- https://github.com/advisories/GHSA-6px8-mr29-cj4r
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
