CVE-2024-45440: Drupal Full Path Disclosure

drupal/drupal Updated 02 Oct 2025

Summary

29/08/2024
Yes i
Moderate
5.3

CVE-2024-45440: Drupal Full Path Disclosure. Affects drupal/drupal across 3 version ranges.

>= 8.0.0, < 10.2.9 >= 10.3.0, < 10.3.6 >= 11.0.0, < 11.0.5

Fixed in 10.2.9, 10.3.6 or 11.0.5, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Drupal is a popular open-source content management system (CMS) used for building websites and applications. It provides a flexible platform for creating and managing digital content. The vulnerability in question affects Drupal versions 11.x-dev. Drupal uses a file called authorize.php for authorization purposes. This file is susceptible to a Full Path Disclosure vulnerability, which means that an attacker can obtain the full path of the server's file system. This vulnerability can be exploited even when error logging is disabled, making it more difficult to detect.

Vulnerability Detail

The vulnerability arises when the value of the hash_salt variable in authorize.php is set to the result of file_get_contents of a non-existent file. This can be leveraged by an attacker to disclose sensitive information about the server's file system structure. By exploiting this vulnerability, an attacker can gain insights into the server's directory structure, potentially aiding in further attacks or information disclosure. The impact of this vulnerability is considered low, but it still poses a risk to the confidentiality of sensitive information.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 8.0.0, < 10.2.9 10.2.9
    composer require drupal/drupal:10.2.9
  • >= 10.3.0, < 10.3.6 10.3.6
    composer require drupal/drupal:10.3.6
  • >= 11.0.0, < 11.0.5 11.0.5
    composer require drupal/drupal:11.0.5

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, users can manually set the hash_salt variable in authorize.php to a static value instead of using file_get_contents. This will prevent the disclosure of the full path. However, this is not a recommended long-term solution, and it is strongly advised to apply the official patch or update to a fixed version of Drupal.

Conclusion

The Full Path Disclosure vulnerability in Drupal 11.x-dev allows an attacker to obtain the full path of the server's file system. While the impact is considered low, it still poses a risk to the confidentiality of sensitive information. Users are advised to update to a patched version of Drupal and enable error logging to mitigate this vulnerability.

See every vulnerability recorded for drupal/drupal →

Share this vulnerability

FAQ

Drupal is an open-source content management system used for building websites and applications.

Full Path Disclosure is a vulnerability that allows an attacker to obtain the full path of a server's file system.

By manipulating the hash_salt variable in authorize.php, an attacker can trigger the Full Path Disclosure vulnerability and obtain sensitive information about the server's file system.

The impact of this vulnerability is considered low, but it can potentially aid attackers in further attacks or information disclosure.

To fix this vulnerability, it is recommended to update to a patched version of Drupal and ensure that error logging is enabled.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/drupal.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 8.0.0, < 10.2.9 10.2.9
    composer require drupal/drupal:10.2.9
  • >= 10.3.0, < 10.3.6 10.3.6
    composer require drupal/drupal:10.3.6
  • >= 11.0.0, < 11.0.5 11.0.5
    composer require drupal/drupal:11.0.5

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback