CVE-2024-28859
Gadget chain in Symfony 1 due to vulnerable Swift Mailer dependency
Also known as GHSA-wjv8-pxr6-5f4r
Mitigation
- Upgrade friendsofsymfony1/symfony1 to 1.5.18 or later.
- Upgrade friendsofsymfony1/swiftmailer to one of 5.4.13, 6.2.5 (or later in the same release line).
- Upgrade swiftmailer/swiftmailer to 6.2.5 or later.
Who should check
- Projects that depend on Packagist package friendsofsymfony1/symfony1 (>= 1.3.0, < 1.5.18)
- Projects that depend on Packagist package friendsofsymfony1/swiftmailer (>= 4.0.0, < 5.4.13)
- Projects that depend on Packagist package swiftmailer/swiftmailer (>= 4.0.0, < 6.2.5)
- Anyone running FriendsOfSymfony1 symfony1 >= 1.3.0, < 1.5.18
Vulnerability facts
- Affected
- friendsofsymfony1/symfony1 >= 1.3.0, < 1.5.18; friendsofsymfony1/swiftmailer >= 4.0.0, < 5.4.13; swiftmailer/swiftmailer >= 4.0.0, < 6.2.5
- Fixed in
- 1.5.18, 5.4.13, 6.2.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 1.27% chance of exploitation in 30 days (percentile 70, 2026-11-26)
- CWE
- CWE-502
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist friendsofsymfony1/symfony1 | >= 1.3.0, < 1.5.18 | 1.5.18 | osv |
| Packagist friendsofsymfony1/swiftmailer | >= 4.0.0, < 5.4.13 | 5.4.13, 6.2.5 | osv |
| Packagist swiftmailer/swiftmailer | >= 4.0.0, < 6.2.5 | 6.2.5 | osv |
| FriendsOfSymfony1 symfony1 | >= 1.3.0, < 1.5.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-28859. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-28859.md Affected: friendsofsymfony1/symfony1 >= 1.3.0, < 1.5.18; friendsofsymfony1/swiftmailer >= 4.0.0, < 5.4.13; swiftmailer/swiftmailer >= 4.0.0, < 6.2.5 Fixed in: 1.5.18, 5.4.13, 6.2.5 Steps: 1. Search this machine and project for friendsofsymfony1/symfony1 (Packagist), friendsofsymfony1/swiftmailer (Packagist), swiftmailer/swiftmailer (Packagist), FriendsOfSymfony1 symfony1: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony1/swiftmailer/CVE-2024-28859.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony1/symfony1/CVE-2024-28859.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/swiftmailer/swiftmailer/CVE-2024-28859.yaml
- https://github.com/FriendsOfSymfony1/symfony1
FAQ
Is CVE-2024-28859 being exploited?
There is no confirmed exploitation: CVE-2024-28859 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-28859?
Medium: CVSS 5.0 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-28859?
friendsofsymfony1/symfony1 >= 1.3.0, < 1.5.18; friendsofsymfony1/swiftmailer >= 4.0.0, < 5.4.13; swiftmailer/swiftmailer >= 4.0.0, < 6.2.5.
Is there a fix for CVE-2024-28859?
Yes. Fixed in 1.5.18, 5.4.13, 6.2.5. Upgrade friendsofsymfony1/symfony1 to 1.5.18 or later. Upgrade friendsofsymfony1/swiftmailer to one of 5.4.13, 6.2.5 (or later in the same release line). Upgrade swiftmailer/swiftmailer to 6.2.5 or later.
How do I check if I'm affected by CVE-2024-28859?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.