CVE-2024-55890: Dtale Remote Code Execution Vulnerability
MODERATECVE-2024-55890 is a MODERATE remote code execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Dtale libraries in the PyPI ecosystem. The issue involves d-tale allows remote code execution through the custom filter input. Remediation is available by upgrading affected packages to version 3.16.1.
CVE-2024-55890 at a Glance
How to Fix CVE-2024-55890
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.16.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-55890, 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.16.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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. 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-55890 Affected Dtale Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dtale
|
PyPI |
< 3.16.1
|
3.16.1
|
References
Frequently Asked Questions
What is CVE-2024-55890?
Which Dtale versions are affected?
What version fixes CVE-2024-55890?
Is dtale affected?
What CWE is associated with CVE-2024-55890?
How can I check PyPI dependencies for CVE-2024-55890?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-832w-fhmw-w4f4",
"modified" : "2024-12-13T20:36:23Z",
"published" : "2024-12-13T20:36:22Z",
"aliases" : [ "CVE-2024-55890" ],
"summary" : "D-Tale allows Remote Code Execution through the Custom Filter Input",
"details" : "### Impact\nUsers hosting D-Tale publicly can be vulnerable to remote code execution allowing attackers to run malicious code on the server.\n\n### Patches\nUsers should upgrade to version 3.16.1 where the `update-settings` endpoint blocks the ability for users to update the `enable_custom_filters` flag. You can find out more information on how to turn that flag on [here](https://github.com/man-group/dtale#custom-filter)\n\n### Workarounds\nThe only workaround for versions earlier than 3.16.1 is to only host D-Tale to trusted users.\n\n### References\nSee \"Custom Filter\" [documentation](https://github.com/man-group/dtale#custom-filter)\n",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/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.16.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/man-group/dtale/security/advisories/GHSA-832w-fhmw-w4f4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-55890"
}, {
"type" : "WEB",
"url" : "https://github.com/man-group/dtale/commit/1e26ed3ca12fe83812b90f12a2b3e5fb0b740f7a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/man-group/dtale"
}, {
"type" : "WEB",
"url" : "https://github.com/man-group/dtale#custom-filter"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-13T20:36:22Z",
"nvd_published_at" : "2024-12-13T18:15:22Z"
}
}