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

medium Tenable Cloud Security Plugin ID 421121

Description

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

- Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed
environment interacts with the |attr filter 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 use the |attr filter to
get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter
no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6.
(CVE-2025-27516)

See Also

https://security.alpinelinux.org/vuln/CVE-2025-27516

Plugin Details

Severity: Medium

ID: 421121

Version: Revision 1.14

Type: Local

Published: 3/14/2025

Updated: 1/29/2026

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.41

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-2025-27516

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

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 3/5/2025

Reference Information

CVE: CVE-2025-27516