GHSA-jf8c-36vw-98x4 Drupal core Remote Code Execution

Not scored Published

An attacker can execute arbitrary code on a Drupal site by exploiting unsanitized shell arguments in the email system.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-jf8c-36vw-98x4?

GHSA-jf8c-36vw-98x4 is a command injection vulnerability in drupal/drupal, published on 15 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Which versions are affected by GHSA-jf8c-36vw-98x4?

6 open source packages ship an affected version, including drupal/drupal.

PackageAffectedFixed in
drupal/drupal PackagistFrom 7.07.60
drupal/drupal PackagistFrom 7.07.60
drupal/drupal PackagistFrom 8.0.08.5.8
drupal/drupal PackagistFrom 8.0.08.5.8
drupal/drupal PackagistFrom 8.6.08.6.2
drupal/drupal PackagistFrom 8.6.08.6.2

How do I fix GHSA-jf8c-36vw-98x4?

Upgrade drupal/drupal to a fixed version for your release line: 7.60, 8.5.8 or 8.6.2.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is GHSA-jf8c-36vw-98x4 being exploited?

There is no known exploitation of GHSA-jf8c-36vw-98x4 in the wild and no public exploit code.

Sources

Is GHSA-jf8c-36vw-98x4 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free