CVE-2024-51754
LOWDescription
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.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 35% of all known CVEs.
References
Related Vulnerabilities
Other CWE-668 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2022-39952 | Critical | 9.8 | 100% | - | Fix |
| CVE-2017-16597 | Critical | 9.8 | 57% | - | - |
| CVE-2017-16603 | High | 8.8 | 54% | - | - |
| CVE-2024-25153 | Critical | 9.8 | 42% | - | Fix |
| CVE-2017-0215 | Medium | 5.3 | 36% | - | - |
| CVE-2022-25236 | Critical | 9.8 | 34% | - | Fix |
Embed a live status badge for CVE-2024-51754
Markdown
[](https://tridentstack.com/cve/CVE-2024-51754)HTML
<a href="https://tridentstack.com/cve/CVE-2024-51754"><img src="https://tridentstack.com/cve/badge/CVE-2024-51754.svg" alt="CVE-2024-51754"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-29.