---
title: "GHSA-jf8c-36vw-98x4: Drupal core Remote Code Execution"
url: https://erroneo.us/security/ghsa/GHSA-jf8c-36vw-98x4/
description: "GHSA-jf8c-36vw-98x4 (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-jf8c-36vw-98x4"
license: All rights reserved. Quote with attribution and a link.
---

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

## Affected packages

- Composer (PHP) `drupal/drupal` >= 7.0, < 7.60 → fixed: 7.60
- Composer (PHP) `drupal/drupal` >= 8.0.0, < 8.5.8 → fixed: 8.5.8
- Composer (PHP) `drupal/drupal` >= 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-jf8c-36vw-98x4](https://github.com/advisories/GHSA-jf8c-36vw-98x4)
- [github.com](https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/2018-10-17-4.yaml)
- [drupal.org](https://www.drupal.org/sa-core-2018-006)

---
Source page: https://erroneo.us/security/ghsa/GHSA-jf8c-36vw-98x4/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
