Skip to main content
Public proof of conceptFix available

CVE-2024-28859

A public proof of concept exists; no exploitation attested.

  • Published2024-03-15
  • Fixed in6.2.5 · 5.4.13
  • WeaknessCWE-502

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-03-1523:15CVE publishedNVD

Versions per branch

OSV · CISA-ADP · NVD
friendsofsymfony1/swiftmailer
BranchAffectedFixed in
6.x≥ 6.0.0, < 6.2.56.2.5
5.4≥ 4.0.0, < 5.4.135.4.13
Friends of symfony project fosuserbundle
BranchAffectedFixed in
1.x≥ 1.3.0, < 1.5.181.5.18
Friendsofsymfony1 symfony1
BranchAffectedFixed in
1.x≥ 1.3.0, < 1.5.181.5.18

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • FriendsOfSymfony1 symfony1
    Affected
    • = >= 1.3.0, < 1.5.18no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-03-15

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • swiftmailer/swiftmailerTuxCare:Packagistfrom v5.4.12 · fixed in 5.4.12-p1+tuxcare

Full record on NVD

Fix

  1. Update friendsofsymfony1/swiftmailer to 6.2.5 · 5.4.13

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-03-18
  • CNACVSS 3.15known since 2026-10-23
  • NVDCVSS 3.19read 2026-10-23
  • CNAweakness (CWE)CWE-502known since 2026-10-23
  • FIRST EPSSEPSS score1.6 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2024-03-18

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
2024-03-15
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-wjv8-pxr6-5f4r

Frequently asked questions

What is CVE-2024-28859?

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.

Is CVE-2024-28859 actively exploited?

A proof-of-concept exploit exists for CVE-2024-28859, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-28859?

CVE-2024-28859 has a CVSS v3 base score of 9 (Critical severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.

Running friendsofsymfony1/swiftmailer? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record