twig/twig
Affected
- introduced
1.0.0, fixed1.44.8(ecosystem)
Fixed versions
1.44.8
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2024-45411
Twig has a possible sandbox bypass
Description
Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions.
The security issue happens when all these conditions are met:
include() function which references a template name (like included.twig) and not a Template or TemplateWrapper instance;include() call but in a non-sandbox context (possible as the sandbox has been globally disabled).Resolution
The patch ensures that the sandbox security checks are always run at runtime.
Credits
We would like to thank Fabien Potencier for reporting and fixing the issue.
Medium Basis: The source's own band: MODERATE
1.0.0, fixed 1.44.8 (ecosystem)1.44.8
The export has no generic command for this ecosystem.
2.0.0, fixed 2.16.1 (ecosystem)2.16.1
The export has no generic command for this ecosystem.
3.12.0, fixed 3.14.0 (ecosystem)3.14.0
The export has no generic command for this ecosystem.
3.0.0, fixed 3.11.1 (ecosystem)3.11.1
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0