Vulnerability CVE-2022-39261: Information
Description
Twig is a template language for PHP. Versions 1.x prior to 1.44.7, 2.x prior to 2.15.3, and 3.x prior to 3.4.3 encounter an issue when the filesystem loader loads templates for which the name is a user input. It is possible to use the `source` or `include` statement to read arbitrary files from outside the templates' directory when using a namespace like `@somewhere/../some.file`. In such a case, validation is bypassed. Versions 1.44.7, 2.15.3, and 3.4.3 contain a fix for validation of such template names. There are no known workarounds aside from upgrading.
Severity: HIGH (7.5) Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Fixed packages
Package name | Branch | Fixed in version | Version from repository | Errata ID | Task # | State |
---|---|---|---|---|---|---|
itop | sisyphus | 3.1.0.2-alt1 | 3.1.1.1-alt1 | ALT-PU-2023-6184-1 | 331144 | Fixed |
itop | sisyphus_e2k | 3.1.0.2-alt1 | 3.1.1.1-alt1 | ALT-PU-2023-6207-1 | - | Fixed |
itop | p10 | 3.1.1.1-alt1 | 3.1.1.1-alt1 | ALT-PU-2024-4537-3 | 343613 | Fixed |
itop | p10_e2k | 3.1.1.1-alt1 | 3.1.1.1-alt1 | ALT-PU-2024-4805-1 | - | Fixed |
itop | c10f1 | 3.1.1.1-alt1 | 3.1.1.1-alt1 | ALT-PU-2024-4961-2 | 343640 | Fixed |
itop | c9f2 | 3.1.1.1-alt1 | 3.1.1.1-alt1 | ALT-PU-2024-4547-3 | 343621 | Fixed |
itop | p11 | 3.1.0.2-alt1 | 3.1.1.1-alt1 | ALT-PU-2023-6184-1 | 331144 | Fixed |
References to Advisories, Solutions, and Tools
Hyperlink | Resource |
---|---|
https://github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0b |
|
https://github.com/twigphp/Twig/security/advisories/GHSA-52m2-vc4m-jj33 |
|
https://www.drupal.org/sa-core-2022-016 |
|
DSA-5248 |
|
[debian-lts-announce] 20221011 [SECURITY] [DLA 3147-1] twig security update |
|
FEDORA-2022-4490a4772d | |
FEDORA-2022-d39b2a755b | |
FEDORA-2022-1695454935 | |
FEDORA-2022-9d8ee4a6de | |
FEDORA-2022-c6fe3ebd94 | |
FEDORA-2022-73b9fb7a77 |