{"id":"CVE-2024-28859","published":"2024-03-15T22:32:56Z","modified":"2024-08-15T19:42:39Z","title":"Gadget chain in Symfony 1 due to vulnerable Swift Mailer dependency","vendor":"FriendsOfSymfony1","product":"symfony1","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01594,"percentile":0.76307,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/FriendsOfSymfony1/symfony1/security/advisories/GHSA-wjv8-pxr6-5f4r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/FriendsOfSymfony1/symfony1/commit/edb850f94fb4de18ca53d0d1824910d6e8130166","tags":["x_refsource_MISC"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":15.26},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"friendsofsymfony1","affectedVersions":[{"vendor":"FriendsOfSymfony1","product":"symfony1","versions":[">= 1.3.0, < 1.5.18"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-03-18T14:49:46.885375Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"friendsofsymfony1/symfony1","vulnerableRanges":[">=1.3.0, <1.5.18"],"patched":["1.5.18"],"from":["GHSA-wjv8-pxr6-5f4r"],"provenance":"source"},{"ecosystem":"Packagist","package":"friendsofsymfony1/swiftmailer","vulnerableRanges":[">=4.0.0, <5.4.13",">=6.0.0, <6.2.5"],"patched":["5.4.13","6.2.5"],"from":["GHSA-wjv8-pxr6-5f4r"],"provenance":"source"},{"ecosystem":"Packagist","package":"swiftmailer/swiftmailer","vulnerableRanges":[">=4.0.0, <6.2.5"],"patched":["6.2.5"],"from":["GHSA-wjv8-pxr6-5f4r"],"provenance":"source"}],"summary":{"text":"The flaw is a gadget chain in symfony1, a community fork of Symfony 1.4, stemming from the Swift Mailer dependency that is bundled by default in its vendor directory, where Swift Mailer classes' __destruct() methods can be abused through crafted $this->_keys contents. An attacker who can get a developer's project to unserialize their untrusted input could achieve remote code execution, though exploitation requires the project to deserialize user-supplied data and the attacker to reach that input over the network with low privileges and a high-complexity attack.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:47Z"},"euvd":{"id":"EUVD-2024-1026","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-28859","published":"2024-03-15","fixed":"1.5.18","kev":false},{"cve":"CVE-2024-28861","published":"2024-03-22","fixed":"1.5.19","kev":false,"link":{"from":"CVE-2024-28859","to":"CVE-2024-28861","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:friendsofsymfony1/symfony1","fromFixed":"1.5.18","toFixed":"1.5.19","daysApart":7},{"kind":"similar","provenance":"machine","score":0.3,"basis":"same product + CWE + description similarity"}]}}],"package":"Packagist:friendsofsymfony1/symfony1"}}