Vulnerabilities

CVE-2024-45411

High 8.6 CVSS 3.1

Description

Twig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions. This vulnerability is fixed in 1.44.8, 2.16.1, and 3.14.0.

Description as published by the source, in English.

Key facts

Published
2024-09-09
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.8 % higher than 55 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Symfony Twig ≥ 1.0.0, < 1.44.8 Affected
Symfony Twig ≥ 2.0.0, < 2.16.1 Affected
Symfony Twig ≥ 3.0.0, < 3.14.0 Affected
twig twig (Packagist) ≥ 1.0.0, < 1.44.8 Affected
twig twig (Packagist) ≥ 2.0.0, < 2.16.1 Affected
twig twig (Packagist) ≥ 3.0.0, < 3.11.1 Affected
twig twig (Packagist) ≥ 3.12.0, < 3.14.0 Affected

Weakness type

  • CWE-693: Protection Mechanism Failure

    The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1040: Network Sniffing credential-access, discovery
  • T1083: File and Directory Discovery discovery
  • T1565.002: Transmitted Data Manipulation impact
  • T1574.005: Executable Installer File Permissions Weakness stealth, execution
  • T1574.010: Services File Permissions Weakness stealth, execution
  • T1611: Escape to Host privilege-escalation

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities