CVE-2024-8862: Dtale D-Tale Command Execution Vulnerability Vulnerability
MODERATECVE-2024-8862 is a MODERATE (CVSS 7.3) d-tale command execution vulnerability vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Dtale libraries in the PyPI ecosystem. The issue involves d-tale command execution vulnerability. Remediation is available by upgrading affected packages to version 3.14.1.
CVE-2024-8862 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-8862
To remediate this vulnerability, upgrade all affected Dtale 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 dtale>=3.14.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show dtale
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-8862, inspect your installed packages using pip:
pip show dtale
Analyze the terminal output to locate any version of Dtale in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.14.1), your application is affected.
Note: The pip show dtale command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Dtale, 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-2024-8862 Affected Dtale Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dtale
|
PyPI |
< 3.14.1
|
3.14.1
|
References
Frequently Asked Questions
What is CVE-2024-8862?
Which Dtale versions are affected?
What version fixes CVE-2024-8862?
Is dtale affected?
What is the CVSS score of CVE-2024-8862?
What CWE is associated with CVE-2024-8862?
How can I check PyPI dependencies for CVE-2024-8862?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fg5m-m723-7mv6",
"modified" : "2024-09-20T19:50:07Z",
"published" : "2024-09-16T14:37:27Z",
"aliases" : [ "CVE-2024-8862" ],
"summary" : "D-Tale Command Execution Vulnerability",
"details" : "D-Tale is the combination of a Flask back-end and a React front-end to bring you an easy way to view & analyze Pandas data structures. In dtale\\views.py, under the route @dtale.route(\"/chart-data/<data_id>\"), the query parameters from the request are directly passed into run_query for execution. And the run_query function calls proceed without performing any processing or sanitization of the query parameter. As a result, the query is directly used in the df.query method for data retrieval. Tthe engine used is `python`, which allows executing the query expression ans leading to a command execution vulnerability. ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "dtale"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.14.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8862"
}, {
"type" : "WEB",
"url" : "https://github.com/man-group/dtale/commit/b6e30969390520d1400b55acbb13e5487b8472e8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/man-group/dtale"
}, {
"type" : "WEB",
"url" : "https://rumbling-slice-eb0.notion.site/Unauthenticated-Remote-Command-Execution-via-Panda-df-query-9dc40f0477ee4b65806de7921876c222?pvs=4"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.277499"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.277499"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.403200"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-20T19:50:07Z",
"nvd_published_at" : "2024-09-14T20:15:11Z"
}
}