# GHSA-wfrj-qqc2-83cm: Remote command injection when using sendmail email transport

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-09-20T19:52:41.000Z
- Modified: 2021-09-17T17:48:56.000Z
- Weaknesses: CWE-88

## Description

### Impact

Sites using the `sendmail` transport as part of their `mail` config are vulnerable to remote command injection due to a [vulnerability](https://github.com/advisories/GHSA-48ww-j4fc-435p) in the `nodemailer` dependency.

Ghost defaults to the `direct` transport so this is only exploitable if the `sendmail` transport is explicitly used.

### Patches

Fixed in 4.15.0, all sites should upgrade as soon as possible.

### Workarounds

* Use an alternative email transport as described in the [docs](https://ghost.org/docs/config/#mail). 

### For more information

If you have any questions or comments about this advisory:

* email us at security@ghost.org

(As written by GitHub Advisory Database.)

## Affected

- ghost (npm): before 4.15.0

## References

- <https://github.com/TryGhost/Ghost/security/advisories/GHSA-wfrj-qqc2-83cm> (web)
- <https://github.com/TryGhost/Ghost/commit/93e4b2eafd18bc8e4c17924e0824e73617e7940c> (web)
- <https://github.com/TryGhost/Ghost> (package)
- <https://github.com/advisories/GHSA-48ww-j4fc-435p> (advisory)

## Sources

- GitHub Advisory Database: [GHSA-wfrj-qqc2-83cm](https://github.com/advisories/GHSA-wfrj-qqc2-83cm), CC-BY-4.0, modified 2021-09-17

---

Page: https://cve.day/GHSA-wfrj-qqc2-83cm · Whole record: https://cve.day/GHSA-wfrj-qqc2-83cm.json · Rebuilt by cve.day 2026-11-25T22:56:46.837Z
