Live threats

All CVEs / Symfony

CVE-2024-45411Symfony Twig

High 8.6 No auth needed

Priority
67
CVSS 3.1
8.6
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Sep 9, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-693
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Twig.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist twig/twig ≥ 1.0.0 < 1.44.8 1.44.8 composer require "twig/twig:^1.44.8"
Packagist twig/twig ≥ 2.0.0 < 2.16.1 2.16.1 composer require "twig/twig:^2.16.1"
Packagist twig/twig ≥ 3.12.0 < 3.14.0 3.14.0 composer require "twig/twig:^3.14.0"
Packagist twig/twig ≥ 3.0.0 < 3.11.1 3.11.1 composer require "twig/twig:^3.11.1"

Per OSV / GitHub Advisories (GHSA-6j75-5wfj-gh66). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
symfonytwig≥ 1.0.0 < 1.44.8
symfonytwig≥ 2.0.0 < 2.16.1
symfonytwig≥ 3.0.0 < 3.14.0

Official sources

References

Links published by the sources. Open them with care.