GitHub Advisoryadvisory · Packagist

GHSA-4qpj-gxxg-jqg4 Swiftmailer Sendmail transport arbitrary shell execution

CRITICAL Published 2024-05-29 Modified 2024-05-29 Official page ↗
Ecosystem
Packagist
Packages
swiftmailer/swiftmailer
Severity
Critical
Reviewed
2024-05-29

Affected packages

• Packagist swiftmailer/swiftmailer: >= 4.0.0, < 5.2.1 → fixed in 5.2.1

Description

Prior to 5.2.1, the sendmail transport (`Swift_Transport_SendmailTransport`) was vulnerable to an arbitrary shell execution if the "From" header came from a non-trusted source and no "Return-Path" is configured. This has been fixed in 5.2.1. If you are using sendmail as a transport, you are encouraged to upgrade as soon as possible.

References