Packagist/twig/twig CVE-2024-51754: low 2.2, EPSS 0.43%
Twig has unguarded calls to `__toString()` when nesting an object into an array
Action: Upgrade twig/twig to 3.11.2 or later.
composer require twig/twig:3.11.2composer require twig/twig:3.14.1Affected
| introduced | fixed | last affected |
|---|---|---|
| 0 | 3.11.2 | - |
| 3.12 | 3.14.1 | - |
Fixed versions
| 3.11.2 | 3.14.1 |
Sources
- osv: GHSA-6377-hfv9-hqf6
- https://github.com/twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6
- https://nvd.nist.gov/vuln/detail/CVE-2024-51754
- https://github.com/twigphp/Twig/commit/2bb8c2460a2c519c498df9b643d5277117155a73
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-51754.yaml
- https://github.com/twigphp/Twig
- https://lists.debian.org/debian-lts-announce/2025/05/msg00039.html
- https://symfony.com/blog/unguarded-calls-to-__tostring-when-nesting-an-object-into-an-array
CVE-2024-51754 · published · modified · JSON