Vulnerability

CVE-2024-51754

lowCVSS 3.1 2.2Published 6 Nov 2024

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /twigphp/Twig/commit/2bb8c2460a2c519c498df9b643d5277117155a…
  • github.com /twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6
  • lists.debian.org /debian-lts-announce/2025/05/msg00039.html

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning