---
title: "GHSA-6mgp-v5cm-ghg5: Drupal core Remote Code Execution"
url: https://erroneo.us/security/ghsa/GHSA-6mgp-v5cm-ghg5/
description: "GHSA-6mgp-v5cm-ghg5 (critical, Composer (PHP)): Drupal core Remote Code Execution. In Drupal core, when sending email some variables were not being…"
type: advisory
section: "Security Digest"
date_published: 2024-05-15
date_modified: 2024-05-15
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-6mgp-v5cm-ghg5"
license: All rights reserved. Quote with attribution and a link.
---

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

## Affected packages

- Composer (PHP) `drupal/core` >= 7.0, < 7.60 → fixed: 7.60
- Composer (PHP) `drupal/core` >= 8.0.0, < 8.5.8 → fixed: 8.5.8
- Composer (PHP) `drupal/core` >= 8.6.0, < 8.6.2 → fixed: 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.

## Sources

- [GitHub Advisory GHSA-6mgp-v5cm-ghg5](https://github.com/advisories/GHSA-6mgp-v5cm-ghg5)
- [github.com](https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/2018-10-17-4.yaml)
- [drupal.org](https://www.drupal.org/sa-core-2018-006)

---
Source page: https://erroneo.us/security/ghsa/GHSA-6mgp-v5cm-ghg5/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
