Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. drupal/core
  4. ›
  5. GHSA-6mgp-v5cm-ghg5

GHSA-6mgp-v5cm-ghg5: Drupal core Remote Code Execution

May 15, 2024

In Drupal core, when sending email some variables were not being sanitized for shell arguments in DefaultMailSystem::mail(), which could lead to remote code execution.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/2018-10-17-4.yaml
  • github.com/advisories/GHSA-6mgp-v5cm-ghg5
  • github.com/drupal/core
  • www.drupal.org/sa-core-2018-006

Code Behaviors & Features

Detect and mitigate GHSA-6mgp-v5cm-ghg5 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.0 before 7.60, all versions starting from 8.0.0 before 8.5.8, all versions starting from 8.6.0 before 8.6.2

Fixed versions

  • 7.60
  • 8.5.8
  • 8.6.2

Solution

Upgrade to versions 7.60, 8.5.8, 8.6.2 or above.

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/drupal/core/GHSA-6mgp-v5cm-ghg5.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.