Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface
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 |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Twigphp | Twig |
|
| Source | ID | Title |
|---|---|---|
Debian DSA |
DSA-6311-1 | php-twig security update |
Github GHSA |
GHSA-2q52-x2ff-qgfr | Twig: Possible sandbox bypass when using a source policy |
Ubuntu USN |
USN-8408-1 | Twig vulnerability |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.758% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:symfony:twig:2.16.\*:*:*:*:*:*:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Symfony
Symfony twig |
|
| CPEs | cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Symfony
Symfony twig |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Twigphp
Twigphp twig |
|
| Vendors & Products |
Twigphp
Twigphp twig |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface that allows attackers with template rendering capabilities to pass arbitrary PHP callables to sort, filter, map, and reduce filters. Attackers can exploit the runtime check that fails to use the current template source to bypass sandbox restrictions and execute arbitrary code when the sandbox is enabled through a source policy rather than globally. | |
| Title | Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface | |
| Weaknesses | CWE-693 | |
| References |
| |
| Metrics |
cvssV3_1
|