CVE-2024-28859
Deserialization Gadget chain in Swift Mailer
Severidad por fuente
La etiqueta propia de Trivy es CRITICAL. Crítica según NVD. Más baja según GHSA (media).
Descripción
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.
Paquetes afectados y versiones corregidas
| Fuente | Paquete | Corregido en |
|---|---|---|
| composer::GitHub Security Advisory Composer | friendsofsymfony1/swiftmailer, friendsofsymfony1/symfony1, swiftmailer/swiftmailer | 5.4.13, 6.2.5 y 2 más |
| composer::PHP Security Advisories Database | friendsofsymfony1/swiftmailer, friendsofsymfony1/symfony1, swiftmailer/swiftmailer | sin corrección indicada |
Mostrar las 6 entradas de 2 fuentes
| Fuente | Paquete | Corregido en |
|---|---|---|
| composer::GitHub Security Advisory Composer | friendsofsymfony1/swiftmailer | 5.4.13, 6.2.5 |
| composer::GitHub Security Advisory Composer | friendsofsymfony1/symfony1 | 1.5.18 |
| composer::GitHub Security Advisory Composer | swiftmailer/swiftmailer | 6.2.5 |
| composer::PHP Security Advisories Database | friendsofsymfony1/swiftmailer | sin corrección indicada |
| composer::PHP Security Advisories Database | friendsofsymfony1/symfony1 | sin corrección indicada |
| composer::PHP Security Advisories Database | swiftmailer/swiftmailer | sin corrección indicada |
Referencias
- 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
- https://github.com/FriendsOfSymfony1/symfony1/commit/edb850f94fb4de18ca53d0d1824910d6e8130166
- https://github.com/FriendsOfSymfony1/symfony1/security/advisories/GHSA-wjv8-pxr6-5f4r
- https://nvd.nist.gov/vuln/detail/CVE-2024-28859