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

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.59%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-15T22:32:56.078Z
- Modified: 2026-09-10T03:50:10.958Z
- Also known as: GHSA-wjv8-pxr6-5f4r
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Symfony1 is a community fork of symfony 1.4 with DIC, form enhancements, latest Swiftmailer, better performance, composer compatible and PHP 8 support. Symfony 1 has a gadget chain due to vulnerable Swift Mailer dependency that would enable an attacker to get remote code execution if a developer unserialize user input in his project. This vulnerability present no direct threat but is a vector that will enable remote code execution if a developper deserialize user untrusted data. Symfony 1 depends on Swift Mailer which is bundled by default in vendor directory in the default installation since 1.3.0. Swift Mailer classes implement some `__destruct()` methods. These methods are called when php destroys the object in memory. However, it is possible to include any object type in `$this->_keys` to make PHP access to another array/object properties than intended by the developer. In particular, it is possible to abuse the array access which is triggered on foreach($this->_keys ...) for any class implementing ArrayAccess interface. This may allow an attacker to execute any PHP command which leads to remote code execution. This issue has been addressed in version 1.5.18. Users are advised to upgrade. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- FriendsOfSymfony1 symfony1: >= 1.3.0, < 1.5.18; from 1.3.0 before 1.5.18
- friends_of_symfony_project fosuserbundle: from 1.3.0 before 1.5.18
- friendsofsymfony1/symfony1 (Packagist): from 1.3.0 before 1.5.18
- friendsofsymfony1/swiftmailer (Packagist): from 4.0.0 before 5.4.13; from 6.0.0 before 6.2.5
- swiftmailer/swiftmailer (Packagist): from 4.0.0 before 6.2.5

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/FriendsOfSymfony1/symfony1/security/advisories/GHSA-wjv8-pxr6-5f4r> (exploit, technical-description, vendor-advisory, web)
- <https://github.com/FriendsOfSymfony1/symfony1/commit/edb850f94fb4de18ca53d0d1824910d6e8130166> (technical-description, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28859> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony1/swiftmailer/CVE-2024-28859.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony1/symfony1/CVE-2024-28859.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/swiftmailer/swiftmailer/CVE-2024-28859.yaml> (web)
- <https://github.com/FriendsOfSymfony1/symfony1> (package)

## Sources

- CVE List: [CVE-2024-28859](https://www.cve.org/CVERecord?id=CVE-2024-28859), CVE Terms of Use, modified 2024-08-15
- GitHub Advisory Database: [GHSA-wjv8-pxr6-5f4r](https://github.com/advisories/GHSA-wjv8-pxr6-5f4r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-28859](https://nvd.nist.gov/vuln/detail/CVE-2024-28859), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-28859 · Whole record: https://cve.day/CVE-2024-28859.json · Rebuilt by cve.day 2026-11-25T22:58:37.606Z
