CriticalGHSA-6mgp-v5cm-ghg5

Drupal core Remote Code Execution

Published 15 May 2024 · Updated 29 Nov 2024

Affected packages

drupal/coreComposer
Affected
>=7.0 <7.60
Fixed in
7.60
Update to the fixed version for your release line, for example:composer require drupal/core:^7.60
drupal/coreComposer
Affected
>=8.0.0 <8.5.8
Fixed in
8.5.8
Update to the fixed version for your release line, for example:composer require drupal/core:^8.5.8
drupal/coreComposer
Affected
>=8.6.0 <8.6.2
Fixed in
8.6.2
Update to the fixed version for your release line, for example:composer require drupal/core:^8.6.2

Details

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.

Is GHSA-6mgp-v5cm-ghg5 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected drupal/core, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.