CVE-2024-51754

unknown
Published 2024-11-06 · Modified 2025-05-29
CVSS v3
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
CVSS v2
VIR risk

Description

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-51754

OS impact

OSVersionStatusFixed in
debian debianbookwormaffected
debian debianbullseyefixed2.14.3-1+deb11u4
debian debianforkyfixed3.14.2-1
debian debiansidfixed3.14.2-1
debian debiantrixiefixed3.14.2-1

Package impact

EcosystemPackageVulnerableFixed
php Packagisttwig/twig<3.11.23.11.2
php Packagisttwig/twig>=3.12,<3.14.13.14.1

References

Verify integrity in audit chain (admin only). AS-IS.