# CVE-2024-28859: Gadget chain in Symfony 1 due to vulnerable Swift Mailer dependency

Source: https://junglewise.ai/threats/cve-2024-28859-gadget-chain-in-symfony-1-due-to-vulnerable-swift-mailer  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-03-18  
License: CC BY 4.0 with a link back

CVE-2024-28859 · Severity: low · CVSS 3.1 · Published 2024-03-18

Gadget chain in Symfony 1 due to vulnerable Swift Mailer dependency

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

## Quick answers

**Is CVE-2024-28859 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-28859 being exploited in the wild.

**How severe is CVE-2024-28859?** Low severity, with a CVSS score of 3.1, published 18 March 2024.

**Which products and versions are affected?** friendsofsymfony1/swiftmailer (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=5.4.13; friendsofsymfony1/symfony1 (Packagist) ECOSYSTEM:introduced=1.3.0,fixed=1.5.18; swiftmailer/swiftmailer (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=6.2.5.

**Is there a fix for CVE-2024-28859?** Yes. friendsofsymfony1/swiftmailer (Packagist): upgrade to 5.4.13 or later; friendsofsymfony1/symfony1 (Packagist): upgrade to 1.5.18 or later; swiftmailer/swiftmailer (Packagist): upgrade to 6.2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-28859?** Check whether you run friendsofsymfony1/swiftmailer (Packagist), friendsofsymfony1/symfony1 (Packagist) or 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

- friendsofsymfony1/swiftmailer (Packagist): upgrade to 5.4.13 or later

  ```sh
  composer require friendsofsymfony1/swiftmailer:^5.4.13
  ```

- friendsofsymfony1/symfony1 (Packagist): upgrade to 1.5.18 or later

  ```sh
  composer require friendsofsymfony1/symfony1:^1.5.18
  ```

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

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


## Affected products

- friendsofsymfony1/swiftmailer (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=5.4.13
- friendsofsymfony1/symfony1 (Packagist) ECOSYSTEM:introduced=1.3.0,fixed=1.5.18
- swiftmailer/swiftmailer (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=6.2.5

## Identifiers

- CVE-2024-28859
- GHSA-wjv8-pxr6-5f4r

## Related threats

- [Swiftmailer Sendmail transport arbitrary shell execution](https://junglewise.ai/threats/swiftmailer-sendmail-transport-arbitrary-shell-execution-4b6a40a0)
- [Gadget chain in Symfony 1 due to uncontrolled unserialized input in sfNamespacedParameterHolder](https://junglewise.ai/threats/cve-2024-28861-gadget-chain-in-symfony-1-due-to-uncontrolled-unserialized-input)
- [Swift Mailer mail transport Command Injection](https://junglewise.ai/threats/cve-2016-10074-swift-mailer-mail-transport-command-injection)
