SCA: security update for twig/twig (GHSA-2q52-x2ff-qgfr)

high Tenable Cloud Security Plugin ID 442716

Description

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

- 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. (CVE-2026-24425)

Solution

Update the twig/twig library and its related packages to version 3.26.0 or later.

See Also

https://github.com/advisories/GHSA-2q52-x2ff-qgfr

Plugin Details

Severity: High

ID: 442716

Version: Revision 1.3

Type: Local

Family: SCA Checks

Published: 6/6/2026

Updated: 7/6/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.35

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

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

CVSS Score Source: CVE-2026-24425

CVSS v3

Risk Factor: Critical

Base Score: 9.9

Temporal Score: 8.6

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

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

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 6.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/5/2026

Vulnerability Publication Date: 5/20/2026

Reference Information

CVE: CVE-2026-24425

cwe: CWE-693