# Swiftmailer Sendmail transport arbitrary shell execution

Source: https://junglewise.ai/threats/swiftmailer-sendmail-transport-arbitrary-shell-execution-4b6a40a0  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-05-29  
License: CC BY 4.0 with a link back

Severity: info · Published 2024-05-29

Swiftmailer Sendmail transport arbitrary shell execution

Technologies: [swiftmailer/swiftmailer (Packagist)](https://junglewise.ai/threats/technologies/swiftmailer-swiftmailer). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 29 May 2024.

**Which products and versions are affected?** swiftmailer/swiftmailer (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=5.2.1.

**Is there a fix for This vulnerability?** Yes. swiftmailer/swiftmailer (Packagist): upgrade to 5.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run swiftmailer/swiftmailer (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- swiftmailer/swiftmailer (Packagist): upgrade to 5.2.1 or later

  ```sh
  composer require swiftmailer/swiftmailer:^5.2.1
  ```


## Affected products

- swiftmailer/swiftmailer (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=5.2.1

## Related threats

- [Gadget chain in Symfony 1 due to vulnerable Swift Mailer dependency](https://junglewise.ai/threats/cve-2024-28859-gadget-chain-in-symfony-1-due-to-vulnerable-swift-mailer)
- [Swift Mailer mail transport Command Injection](https://junglewise.ai/threats/cve-2016-10074-swift-mailer-mail-transport-command-injection)
