SCA: security update for twig/twig (GHSA-52m2-vc4m-jj33)

high Tenable Cloud Security Plugin ID 410511

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2022-39261)

See Also

https://github.com/advisories/GHSA-52m2-vc4m-jj33

Plugin Details

Severity: High

ID: 410511

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2022-39261

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 9/30/2022

Vulnerability Publication Date: 9/28/2022

Reference Information

CVE: CVE-2022-39261

cwe: CWE-22