Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| twigphp | Twig | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Twigphp | Twig |
|
| Source | ID | Title |
|---|---|---|
Debian DSA |
DSA-6311-1 | php-twig security update |
Github GHSA |
GHSA-24x9-r6q4-q93w | Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.616% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Twigphp
Twigphp twig |
|
| Vendors & Products |
Twigphp
Twigphp twig |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Twig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() compiles an inner template under a synthesized __string_template__<hash> name that can fall outside a SourcePolicyInterface sandbox decision, allowing a sandboxed template that can call template_from_string and include to render an inner template without security policy enforcement. This issue is fixed in version 3.26.0. | |
| Title | Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name | |
| Weaknesses | CWE-693 | |
| References |
| |
| Metrics |
cvssV4_0
|