CVE-2024-45440: Drupal/drupal Drupal Full Path Disclosure Vulnerability

MODERATE
Advisory Identifier: GHSA-mg8j-w93w-xjgc
CVSS 5.3
CWE-209 CWE-497
Published
Advisory Summary

CVE-2024-45440 is a MODERATE (CVSS 5.3) drupal full path disclosure vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Drupal/drupal libraries in the Packagist ecosystem. The issue involves drupal full path disclosure. Remediation is available by upgrading affected packages to version 10.3.6, 11.0.5, 10.2.9.

CVE-2024-45440 at a Glance

CVE Identifier CVE-2024-45440
GHSA Identifier GHSA-mg8j-w93w-xjgc
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Drupal/drupal
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.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: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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-45440

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

drupal/drupal fixed: 10.3.6
Upgrade drupal/drupal to 10.3.6
drupal/drupal fixed: 11.0.5
Upgrade drupal/drupal to 11.0.5
drupal/core-recommended fixed: 10.3.6
Upgrade drupal/core-recommended to 10.3.6
drupal/core-recommended fixed: 11.0.5
Upgrade drupal/core-recommended to 11.0.5
drupal/core fixed: 10.3.6
Upgrade drupal/core to 10.3.6
drupal/core fixed: 11.0.5
Upgrade drupal/core to 11.0.5
drupal/drupal fixed: 10.2.9
Upgrade drupal/drupal to 10.2.9
drupal/core-recommended fixed: 10.2.9
Upgrade drupal/core-recommended to 10.2.9
drupal/core fixed: 10.2.9
Upgrade drupal/core to 10.2.9
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for drupal/drupal

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-45440, inspect your project dependencies for Drupal/drupal:

inspect dependencies for drupal/drupal

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Drupal/drupal, 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

`core/authorize.php` in Drupal 11.x-dev allows Full Path Disclosure (even when error logging is None) if the value of `hash_salt` is `file_get_contents` of a file that does not exist.

CVE-2024-45440 Affected Drupal/drupal Versions

9 component(s)
Fixed Versions:
10.3.611.0.510.2.9
Product / Package Ecosystem Affected Versions Fixed Version
drupal/drupal
Packagist
≥ 10.3.0
< 10.3.6
10.3.6
drupal/drupal
Packagist
≥ 11.0.0
< 11.0.5
11.0.5
drupal/core-recommended
Packagist
≥ 10.3.0
< 10.3.6
10.3.6
drupal/core-recommended
Packagist
≥ 11.0.0
< 11.0.5
11.0.5
drupal/core
Packagist
≥ 10.3.0
< 10.3.6
10.3.6
drupal/core
Packagist
≥ 11.0.0
< 11.0.5
11.0.5
drupal/drupal
Packagist
≥ 8.0.0
< 10.2.9
10.2.9
drupal/core-recommended
Packagist
≥ 8.0.0
< 10.2.9
10.2.9
drupal/core
Packagist
≥ 8.0.0
< 10.2.9
10.2.9

References

Frequently Asked Questions

What is CVE-2024-45440?
CVE-2024-45440 is a security vulnerability in Drupal/drupal involving Drupal Full Path Disclosure under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Drupal/drupal versions are affected?
Affected versions include releases prior to 10.3.6, 11.0.5, 10.2.9 across affected packages: drupal/drupal, drupal/core-recommended, drupal/core.
What version fixes CVE-2024-45440?
Upgrading to 10.3.6, 11.0.5, 10.2.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is drupal/drupal affected?
Yes, drupal/drupal is affected in releases prior to 10.3.6, 11.0.5, 10.2.9. Upgrade your dependency to 10.3.6, 11.0.5, 10.2.9 or later.
Is drupal/core-recommended affected?
Yes, drupal/core-recommended is affected in releases prior to 10.3.6, 11.0.5, 10.2.9. Upgrade your dependency to 10.3.6, 11.0.5, 10.2.9 or later.
What is the CVSS score of CVE-2024-45440?
CVE-2024-45440 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-45440?
CVE-2024-45440 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check Packagist dependencies for CVE-2024-45440?
Run the dependency tree command: 'inspect dependencies for drupal/drupal'. 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-mg8j-w93w-xjgc",
  "modified" : "2025-04-23T14:37:07Z",
  "published" : "2024-08-29T12:31:05Z",
  "aliases" : [ "CVE-2024-45440" ],
  "summary" : "Drupal Full Path Disclosure",
  "details" : "`core/authorize.php` in Drupal 11.x-dev allows Full Path Disclosure (even when error logging is None) if the value of `hash_salt` is `file_get_contents` of a file that does not exist.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.3.0"
      }, {
        "fixed" : "10.3.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core-recommended"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.3.0"
      }, {
        "fixed" : "10.3.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core-recommended"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.3.0"
      }, {
        "fixed" : "10.3.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "10.2.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core-recommended"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "10.2.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "10.2.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45440"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/pull/4827"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/drupal/drupal"
  }, {
    "type" : "WEB",
    "url" : "https://senscybersecurity.nl/CVE-2024-45440-Explained"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/project/drupal/issues/3457781"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/project/drupal/releases/10.2.9"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/project/drupal/releases/10.3.6"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/project/drupal/releases/11.0.5"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/52266"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-209", "CWE-497" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-29T18:05:46Z",
    "nvd_published_at" : "2024-08-29T11:15:27Z"
  }
}