CVE-2023-51232: Dagster Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-q93c-p2mw-p23f
CVSS 7.5
CWE-22
Published
Advisory Summary

CVE-2023-51232 is a MODERATE (CVSS 7.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Dagster libraries in the PyPI ecosystem. The issue involves dagster vulnerable to path traversal attack through its /logs endpoint. Remediation is available by upgrading affected packages to version 1.5.11.

CVE-2023-51232 at a Glance

CVE Identifier CVE-2023-51232
GHSA Identifier GHSA-q93c-p2mw-p23f
Severity MODERATE
CVSS v3.1 Base Score 7.5
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Dagster
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-51232

To remediate this vulnerability, upgrade all affected Dagster dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

dagster fixed: 1.5.11
pip install dagster>=1.5.11
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 dagster

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2023-51232, inspect your installed packages using pip:

pip show dagster

Analyze the terminal output to locate any version of Dagster in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.11), your application is affected.

Note: The pip show dagster command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Dagster, 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

Directory Traversal vulnerability in dagster-webserver Dagster thru 1.5.10 allows remote attackers to obtain sensitive information via crafted request to the /logs endpoint. This may be restricted to certain file names that start with a dot ('.').

CVE-2023-51232 Affected Dagster Versions

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

References

Frequently Asked Questions

What is CVE-2023-51232?
CVE-2023-51232 is a security vulnerability in Dagster involving Dagster vulnerable to Path Traversal attack through its /logs endpoint under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Dagster versions are affected?
Affected versions include releases prior to 1.5.11 across affected packages: dagster.
What version fixes CVE-2023-51232?
Upgrading to 1.5.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dagster affected?
Yes, dagster is affected in releases prior to 1.5.11. Upgrade your dependency to 1.5.11 or later.
What is the CVSS score of CVE-2023-51232?
CVE-2023-51232 has a CVSS v3.1 base score of 7.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-51232?
CVE-2023-51232 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2023-51232?
Run the dependency tree command: 'pip show dagster'. 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-q93c-p2mw-p23f",
  "modified" : "2025-07-08T20:35:45Z",
  "published" : "2025-07-07T15:30:38Z",
  "aliases" : [ "CVE-2023-51232" ],
  "summary" : "Dagster vulnerable to Path Traversal attack through its /logs endpoint",
  "details" : "Directory Traversal vulnerability in dagster-webserver Dagster thru 1.5.10 allows remote attackers to obtain sensitive information via crafted request to the /logs endpoint. This may be restricted to certain file names that start with a dot ('.').",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "dagster"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-51232"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dagster-io/dagster/pull/18462"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dagster-io/dagster/commit/dbb064c2ddda74265b8174edd9775e1302ca6ba0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dagster-io/dagster"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-08T20:35:45Z",
    "nvd_published_at" : "2025-07-07T14:15:23Z"
  }
}