CVE-2025-61677: Datachain DataChain Vulnerable To Deserialization Of Vulnerability
LOWCVE-2025-61677 is a LOW (CVSS 2.5) datachain vulnerable to deserialization of vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Datachain libraries in the PyPI ecosystem. The issue involves datachain vulnerable to deserialization of untrusted data from environment variables. Remediation is available by upgrading affected packages to version 0.34.2.
CVE-2025-61677 at a Glance
Security Impact
CVSS: 2.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2025-61677
To remediate this vulnerability, upgrade all affected Datachain dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install datachain>=0.34.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show datachain
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-61677, inspect your installed packages using pip:
pip show datachain
Analyze the terminal output to locate any version of Datachain in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.34.2), your application is affected.
Note: The pip show datachain command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Datachain, 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
CVE-2025-61677 Affected Datachain Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
datachain
|
PyPI |
< 0.34.2
|
0.34.2
|
References
Frequently Asked Questions
What is CVE-2025-61677?
Which Datachain versions are affected?
What version fixes CVE-2025-61677?
Is datachain affected?
What is the CVSS score of CVE-2025-61677?
What CWE is associated with CVE-2025-61677?
How can I check PyPI dependencies for CVE-2025-61677?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6px8-mr29-cj4r",
"modified" : "2025-10-13T15:10:32Z",
"published" : "2025-10-02T16:24:46Z",
"aliases" : [ "CVE-2025-61677" ],
"summary" : "DataChain Vulnerable to Deserialization of Untrusted Data from Environment Variables",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "datachain"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.34.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/iterative/datachain/security/advisories/GHSA-6px8-mr29-cj4r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-61677"
}, {
"type" : "WEB",
"url" : "https://github.com/iterative/datachain/pull/1358"
}, {
"type" : "WEB",
"url" : "https://github.com/iterative/datachain/commit/914b95610620d50c8d9bee506ccbfa7d4d57fdc0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/iterative/datachain"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-02T16:24:46Z",
"nvd_published_at" : "2025-10-03T22:15:32Z"
}
}