Vulnerability in Twigphp Twig
CVE-2024-51754
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…
EPSS: 0.001 (33.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 2.2 (Low). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N.
Affected products
- Twigphp Twig — versions < 3.11.2, >= 3.12.0, < 3.14.1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- https://github.com/twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6 (x_refsource_CONFIRM)
- https://github.com/twigphp/Twig/commit/2bb8c2460a2c519c498df9b643d5277117155a73 (x_refsource_MISC)
Frequently asked questions
- What is CVE-2024-51754?
- CVE-2024-51754 is a low-severity vulnerability in Twigphp Twig, classified under Exposure of Resource to Wrong Sphere. CVSS score: 2.2/10. Published 2024-11-06.
- How severe is CVE-2024-51754?
- Low severity. CVSS v3 base score is 2.2 out of 10.
- Is CVE-2024-51754 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.