{"id":"GHSA-wfrj-qqc2-83cm","aliases":["GHSA-wfrj-qqc2-83cm"],"related":[],"kind":"vulnerability","state":"published","title":"Remote command injection when using sendmail email transport","summary":"### Impact\n\nSites 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.\n\nGhost defaults to the `direct` transport so this is only exploitable if the `sendmail` transport is explicitly used.\n\n### Patches\n\nFixed in 4.15.0, all sites should upgrade as soon as possible.\n\n### Workarounds\n\n* Use an alternative email transport as described in the [docs](https://ghost.org/docs/config/#mail). \n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* email us at security@ghost.org","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nSites 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.\n\nGhost defaults to the `direct` transport so this is only exploitable if the `sendmail` transport is explicitly used.\n\n### Patches\n\nFixed in 4.15.0, all sites should upgrade as soon as possible.\n\n### Workarounds\n\n* Use an alternative email transport as described in the [docs](https://ghost.org/docs/config/#mail). \n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* email us at security@ghost.org","format":"markdown","source":"ghsa"}],"published":"2021-09-20T19:52:41.000Z","modified":"2021-09-17T17:48:56.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-88"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.15.0"}],"ecosystem":"npm","package":"ghost","purl":"pkg:npm/ghost","source":"ghsa"}],"references":[{"url":"https://github.com/TryGhost/Ghost/security/advisories/GHSA-wfrj-qqc2-83cm","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/TryGhost/Ghost/commit/93e4b2eafd18bc8e4c17924e0824e73617e7940c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/TryGhost/Ghost","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-48ww-j4fc-435p","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wfrj-qqc2-83cm","url":"https://github.com/advisories/GHSA-wfrj-qqc2-83cm","licence":"CC-BY-4.0","modified":"2021-09-17T17:48:56.000Z"}],"updatedAt":"2026-11-25T22:56:46.837Z"}