Protection Mechanism Failure Affecting twig/twig package, versions <3.11.2>=3.12.0, <3.14.1


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-TWIGTWIG-8349791
  • published7 Nov 2024
  • disclosed6 Nov 2024
  • creditJamie Schouten

Introduced: 6 Nov 2024

CVE-2024-51755  (opens in a new tab)
CWE-693  (opens in a new tab)

How to fix?

Upgrade twig/twig to version 3.11.2, 3.14.1 or higher.

Overview

twig/twig is a flexible, fast, and secure template language for PHP.

Affected versions of this package are vulnerable to Protection Mechanism Failure in a sandbox, an attacker can access attributes of Array-like objects due to improper validation by the security policy.

Note:

This change introduces a backward compatibility break.

CVSS Scores

version 4.0
version 3.1