Alpine: multiple py3-jinja2 packages: security update to 3.1.5-r0

medium Tenable Cloud Security Plugin ID 424384

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- Jinja is an extensible templating engine. In versions on the 3.x branch prior to 3.1.5, a bug in the Jinja
compiler allows an attacker that controls both the content and filename of a template to execute arbitrary
Python code, regardless of if Jinja's sandbox is used. To exploit the vulnerability, an attacker needs to
control both the filename and the contents of a template. Whether that is the case depends on the type of
application using Jinja. This vulnerability impacts users of applications which execute untrusted
templates where the template author can also choose the template filename. This vulnerability is fixed in
3.1.5. (CVE-2024-56201)

- Jinja is an extensible templating engine. Prior to 3.1.5, An oversight in how the Jinja sandboxed
environment detects calls to str.format allows an attacker that controls the content of a template to
execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a
template. Whether that is the case depends on the type of application using Jinja. This vulnerability
impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to
str.format and ensures they don't escape the sandbox. However, it's possible to store a reference to a
malicious string's format method, then pass that to a filter that calls it. No such filters are built-in
to Jinja, but could be present through custom filters in an application. After the fix, such indirect
calls are also handled by the sandbox. This vulnerability is fixed in 3.1.5. (CVE-2024-56326)

See Also

https://security.alpinelinux.org/vuln/CVE-2024-56201

https://security.alpinelinux.org/vuln/CVE-2024-56326

Plugin Details

Severity: Medium

ID: 424384

Version: Revision 1.10

Type: Local

Published: 4/4/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.46

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

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

CVSS Score Source: CVE-2024-56201

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:L/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: Medium

Base Score: 5.4

Threat Score: 2

Threat Vector: CVSS:4.0/E:U

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

CVSS Score Source: CVE-2024-56326

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 12/23/2024

Reference Information

CVE: CVE-2024-56201, CVE-2024-56326