CVE-2023-46134: Dtale Remote Code Execution Vulnerability
MODERATECVE-2023-46134 is a MODERATE (CVSS 6.1) 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 dtale vulnerable to remote code execution through the custom filter input. Remediation is available by upgrading affected packages to version 3.7.0.
CVE-2023-46134 at a Glance
Security Impact
CVSS: 6.1
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:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2023-46134
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.7.0
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-2023-46134, 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.7.0), 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-2023-46134 Affected Dtale Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dtale
|
PyPI |
< 3.7.0
|
3.7.0
|
References
Frequently Asked Questions
What is CVE-2023-46134?
Which Dtale versions are affected?
What version fixes CVE-2023-46134?
Is dtale affected?
What is the CVSS score of CVE-2023-46134?
What CWE is associated with CVE-2023-46134?
How can I check PyPI dependencies for CVE-2023-46134?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jq6c-r9xf-qxjm",
"modified" : "2023-10-31T21:23:50Z",
"published" : "2023-10-25T14:20:48Z",
"aliases" : [ "CVE-2023-46134" ],
"summary" : "dtale vulnerable to 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.7.0 where the \"Custom Filter\" input is turned off by default. You can find out more information on how to turn it back on [here](https://github.com/man-group/dtale#custom-filter)\n\n### Workarounds\nThe only workaround for versions earlier than 3.7.0 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_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "dtale"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/man-group/dtale/security/advisories/GHSA-jq6c-r9xf-qxjm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46134"
}, {
"type" : "WEB",
"url" : "https://github.com/man-group/dtale/commit/bf8c54ab2490803f45f0652a9a0e221a94d39668"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/man-group/dtale"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-25T14:20:48Z",
"nvd_published_at" : "2023-10-25T21:15:10Z"
}
}