CVE-2024-45411

Twig has a possible sandbox bypass

Published Sep 9, 2024 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3888-1 php-twig security update
Debian DSA Debian DSA DSA-5771-1 php-twig security update
EUVD EUVD EUVD-2024-2735 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.
Github GHSA Github GHSA GHSA-6j75-5wfj-gh66 Twig has a possible sandbox bypass
Ubuntu USN Ubuntu USN USN-7456-1 Twig vulnerabilities
Ubuntu USN Ubuntu USN USN-7549-1 Twig vulnerability
History
Type Values Removed Values Added
First Time appeared Symfony
Symfony twig
Weaknesses NVD-CWE-Other
CPEs cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
Vendors & Products Symfony
Symfony twig
Type Values Removed Values Added
CPEs cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
Vendors & Products Symfony
Symfony twig
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Symfony
Symfony twig
CPEs cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
Vendors & Products Symfony
Symfony twig
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Twig has a possible sandbox bypass
Weaknesses CWE-693
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 16, 2024, 12:04 PM
Reserved
Aug 28, 2024, 8:21 PM
Status
Modified
Published
Sep 9, 2024, 7:15 PM
Modified
Jun 17, 2026, 7:54 AM