CVE-2024-51754
lowPriorität · verfolgen · 0EPSS 0.004 · 38. PerzentilEUUSEPSS · bewertet 2026-10-28
Twig is a template language for PHP. In a sandbox, an attacker can call `__toString()` on an object even if the `__toString()` method is not allowed by the security policy when the object is part of an array or an argument list (arguments to a function or a filter for instance). This issue has been patched in versions 3.11.2 and 3.14.1. All users are advised to upgrade. There are no known workarounds for this issue.
cvss
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen
SSVC
Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
betroffene Produkte (4)
Betroffene Produkte und Versionsbereiche.
Advisories (1)
Hersteller- und Ökosystem-Meldungen dazu.
- GHSA-6377-hfv9-hqf6Twig has unguarded calls to `__toString()` when nesting an object into an array2024-11-06ghsa · osvUS
### Description In a sandbox, an attacker can call `__toString()` on an object even if the `__toString()` method is not allowed by the security policy when the object is part of an array or an argument list (arguments to a function or a filter for instance). ### Resolution The sandbox mode now checks the `__toString()` method call on all objects. The patch for this issue is available [here](https://github.com/twigphp/Twig/commit/cafc608ece310e62a35a76f17e25c04ab9ed05cc) for the 3.11.x branch, and [here](https://github.com/twigphp/Twig/commit/d4a302681bca9f7c6ce2835470d53609cdf3e23e) for the 3.x branch. ### Credits We would like to thank Jamie Schouten for reporting the issue and Fabien Potencier for providing the fix.
auch bekannt als (3)
Weitere Namen und Kennungen dieser Entität.
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (8)
Externe Belege — Patches, Meldungen, Analysen.
- https://github.com/twigphp/Twig/commit/2bb8c2460a2c519c498df9b643d5277117155a73cnnvd
- https://github.com/twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2024-51754cnnvd
- https://github.com/twigphp/Twig/commit/2bb8c2460a2c519c498df9b643d5277117155a73enisa_euvd
- https://github.com/twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6enisa_euvd
- https://github.com/twigphp/Twig/commit/2bb8c2460a2c519c498df9b643d5277117155a73nvd
- https://github.com/twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6nvd
- https://lists.debian.org/debian-lts-announce/2025/05/msg00039.htmlnvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan