CVE-2024-55890: Dtale Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-832w-fhmw-w4f4
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-55890
GHSA Identifier GHSA-832w-fhmw-w4f4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Dtale
Package Ecosystem PyPI
Published Date
Last Updated

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.

dtale fixed: 3.16.1
pip install dtale>=3.16.1
Verify Direct and Transitive Dependencies

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

### Impact Users hosting D-Tale publicly can be vulnerable to remote code execution allowing attackers to run malicious code on the server. ### Patches Users 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) ### Workarounds The only workaround for versions earlier than 3.16.1 is to only host D-Tale to trusted users. ### References See "Custom Filter" [documentation](https://github.com/man-group/dtale#custom-filter)

CVE-2024-55890 Affected Dtale Versions

1 component(s)
Fixed Versions:
3.16.1
Product / Package Ecosystem Affected Versions Fixed Version
dtale
PyPI
< 3.16.1
3.16.1

References

Frequently Asked Questions

What is CVE-2024-55890?
CVE-2024-55890 is a security vulnerability in Dtale involving D-Tale allows Remote Code Execution through the Custom Filter Input under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Dtale versions are affected?
Affected versions include releases prior to 3.16.1 across affected packages: dtale.
What version fixes CVE-2024-55890?
Upgrading to 3.16.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dtale affected?
Yes, dtale is affected in releases prior to 3.16.1. Upgrade your dependency to 3.16.1 or later.
What CWE is associated with CVE-2024-55890?
CVE-2024-55890 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check PyPI dependencies for CVE-2024-55890?
Run the dependency tree command: 'pip show dtale'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}