CVE-2024-45411Symfony Twig
High 8.6 No auth needed
Follow: this CVE · Symfony · Symfony Twig We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Twig.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| symfony | twig | ≥ 1.0.0 < 1.44.8 |
| symfony | twig | ≥ 2.0.0 < 2.16.1 |
| symfony | twig | ≥ 3.0.0 < 3.14.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Vendor Advisory
- lists.debian.org