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

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T20:27:23.000Z
- Modified: 2024-11-29T05:41:01.782Z
- Weaknesses: CWE-94

## 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.

(As written by GitHub Advisory Database.)

## Affected

- drupal/core (Packagist): from 7.0 before 7.60; from 8.0.0 before 8.5.8; from 8.6.0 before 8.6.2

## References

- <https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/2018-10-17-4.yaml> (web)
- <https://github.com/drupal/core> (package)
- <https://www.drupal.org/sa-core-2018-006> (web)

## Sources

- GitHub Advisory Database: [GHSA-6mgp-v5cm-ghg5](https://github.com/advisories/GHSA-6mgp-v5cm-ghg5), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-6mgp-v5cm-ghg5 · Whole record: https://cve.day/GHSA-6mgp-v5cm-ghg5.json · Rebuilt by cve.day 2026-11-25T22:56:31.341Z
