Drupal core Access control bypass in Media Library module

drupal/drupal Updated 02 Oct 2025

Summary

15/05/2024
MODERATE
Yes i
Moderate
4.3

GHSA-5x28-3f32-x523: Drupal core Access control bypass. Affects drupal/drupal across 2 version ranges.

>= 8.0.0, < 8.7.11 >= 8.8.0, < 8.8.1

Fixed in 8.7.11 or 8.8.1, 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 Penetration testing for web, API and mobile 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. The Media Library module is a core component of Drupal that provides a user interface for managing media items such as images, videos, and documents. It allows users to upload, organize, and display media files on their Drupal site. However, a security vulnerability has been discovered in the Media Library module that can lead to access control bypass in certain configurations.

Vulnerability Detail

The vulnerability in the Media Library module allows unauthorized users to gain access to media items that they should not have permission to view. This can occur when the module is configured in a way that doesn't sufficiently restrict access to media items. An attacker could exploit this vulnerability to view sensitive media files or perform unauthorized actions on them. The impact of this vulnerability depends on the sensitivity of the media files and the permissions of the affected user.

How To Fix

Fixed versions by release line

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

  • >= 8.0.0, < 8.7.11 8.7.11
    composer require drupal/drupal:8.7.11
  • >= 8.8.0, < 8.8.1 8.8.1
    composer require drupal/drupal:8.8.1

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

Workaround

Alternatively, if you are unable to immediately upgrade to the latest version of Drupal, you can mitigate this vulnerability by unchecking the "Enable advanced UI" checkbox on the Media Library configuration page (/admin/config/media/media-library). Please note that this workaround is not available in Drupal 8.7.x.

Conclusion

The Drupal core Media Library module has a security vulnerability that allows access control bypass. To mitigate this vulnerability, it is recommended to upgrade to the latest version of Drupal or apply the provided workaround. It is important to address this vulnerability promptly to prevent unauthorized access to sensitive media files. For additional support and guidance, contact DevNack.com.

See every vulnerability recorded for drupal/drupal →

Share this vulnerability

FAQ

The impact of this vulnerability depends on the sensitivity of the media files and the permissions of the affected user. An attacker could potentially view sensitive media files or perform unauthorized actions on them.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your Drupal site is affected by this vulnerability. Simply upload your composer.lock file to the playground and it will analyze your dependencies for any known vulnerabilities, including this one.

At the time of this advisory, there are no known public exploits for this vulnerability. However, it is important to patch your Drupal installation as soon as possible to prevent any potential exploitation.

No, the workaround of unchecking the "Enable advanced UI" checkbox is not available in Drupal 8.7.x. It is recommended to upgrade to the latest version of Drupal to fix this vulnerability.

For further support and assistance in remediation of this vulnerability, you can reach out to info@devnack.com. They have expertise in Drupal security and can provide guidance on patching and securing your Drupal installation.

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, < 8.7.11 8.7.11
    composer require drupal/drupal:8.7.11
  • >= 8.8.0, < 8.8.1 8.8.1
    composer require drupal/drupal:8.8.1

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