GHSA-6MGP-V5CM-GHG5

GHSA-6MGP-V5CM-GHG5 is a critical-severity code injection vulnerability in drupal/core (composer), affecting versions >= 7.0, < 7.60. It is fixed in 7.60, 8.5.8, 8.6.2.

Summary

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.

Impact

Untrusted input is evaluated as executable code within the application's runtime environment. Typical impact: arbitrary code execution within the application's privilege context.

Affected versions

drupal/core (>= 7.0, < 7.60) drupal/core (>= 8.0.0, < 8.5.8) drupal/core (>= 8.6.0, < 8.6.2)

Security releases

drupal/core → 7.60 (composer) drupal/core → 8.5.8 (composer) drupal/core → 8.6.2 (composer)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade the following packages to resolve this vulnerability:

drupal/core to 7.60 or later; drupal/core to 8.5.8 or later; drupal/core to 8.6.2 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is GHSA-6MGP-V5CM-GHG5? GHSA-6MGP-V5CM-GHG5 is a critical-severity code injection vulnerability in drupal/core (composer), affecting versions >= 7.0, < 7.60. It is fixed in 7.60, 8.5.8, 8.6.2. Untrusted input is evaluated as executable code within the application's runtime environment.
  2. Which versions of drupal/core are affected by GHSA-6MGP-V5CM-GHG5? drupal/core (composer) versions >= 7.0, < 7.60 is affected.
  3. Is there a fix for GHSA-6MGP-V5CM-GHG5? Yes. GHSA-6MGP-V5CM-GHG5 is fixed in 7.60, 8.5.8, 8.6.2. Upgrade to this version or later.
  4. Is GHSA-6MGP-V5CM-GHG5 exploitable, and should I be worried? Whether GHSA-6MGP-V5CM-GHG5 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether GHSA-6MGP-V5CM-GHG5 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix GHSA-6MGP-V5CM-GHG5?
    • Upgrade drupal/core to 7.60 or later
    • Upgrade drupal/core to 8.5.8 or later
    • Upgrade drupal/core to 8.6.2 or later

Other vulnerabilities in drupal/core

Stop the waste.
Protect your environment with Kodem.