Upstream information

CVE-2024-56326 at MITRE

Description

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.

SUSE information

Overall state of this security issue: Pending

This issue is currently rated as having important severity.

CVSS v3 Scores
  CNA (CISA-ADP) SUSE
Base Score 10 8.1
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network Network
Attack Complexity Low High
Privileges Required None None
User Interaction None None
Scope Changed Unchanged
Confidentiality Impact High High
Integrity Impact High High
Availability Impact High High
CVSSv3 Version 3.1 3.1
CVSS v4 Scores
  CNA (GitHub)
Base Score 5.4
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Local
Attack Complexity Low
Attack Requirements Present
Privileges Required Low
User Interaction Passive
Vulnerable System Confidentiality Impact High
Vulnerable System Integrity Impact High
Vulnerable System Availability Impact High
Subsequent System Confidentiality Impact None
Subsequent System Integrity Impact None
Subsequent System Availability Impact None
CVSSv4 Version 4.0
SUSE Bugzilla entry: 1234809 [NEW]

No SUSE Security Announcements cross referenced.


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise Desktop 15 SP5 python-Jinja2 Affected
SUSE Linux Enterprise Desktop 15 SP6 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 12 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP5 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP6 python-Jinja2 Affected
SUSE Linux Enterprise Micro 5.1 python-Jinja2 Affected
SUSE Linux Enterprise Micro 5.2 python-Jinja2 Affected
SUSE Linux Enterprise Micro 5.3 python-Jinja2 Affected
SUSE Linux Enterprise Micro 5.4 python-Jinja2 Affected
SUSE Linux Enterprise Micro 5.5 python-Jinja2 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP5 python-Jinja2 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP6 python-Jinja2 Affected
SUSE Linux Enterprise Module for Python 3 15 SP5 python-Jinja2 Affected
SUSE Linux Enterprise Module for Python 3 15 SP6 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP5 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP5-LTSS python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP6 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 python-Jinja2 Affected
SUSE Linux Micro 6.0 python-Jinja2 Affected
SUSE Linux Micro 6.1 python-Jinja2 Affected
SUSE Manager Client Tools 12 python-Jinja2 Affected
SUSE Manager Client Tools 12-BETA python-Jinja2 Affected
SUSE Manager Proxy 4.3 python-Jinja2 Affected
SUSE Manager Retail Branch Server 4.3 python-Jinja2 Affected
SUSE Manager Server 4.3 python-Jinja2 Affected
openSUSE Leap 15.5 python-Jinja2 Affected
openSUSE Leap 15.6 python-Jinja2 Affected
openSUSE Leap Micro 5.5 python-Jinja2 Affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise Desktop 15 SP4 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP2 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP3 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP4 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS python-Jinja2 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP2 python-Jinja2 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP3 python-Jinja2 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP4 python-Jinja2 Affected
SUSE Linux Enterprise Module for Public Cloud 12 python-Jinja2 Affected
SUSE Linux Enterprise Module for Public Cloud 15 SP4 python-Jinja2 Affected
SUSE Linux Enterprise Module for Python 2 15 SP2 python-Jinja2 Affected
SUSE Linux Enterprise Module for Python 2 15 SP3 python-Jinja2 Affected
SUSE Linux Enterprise Module for Python 3 15 SP4 python-Jinja2 Affected
SUSE Linux Enterprise Server 12 SP5 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP2 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP2-LTSS python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP3 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP3-LTSS python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP4 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP4-LTSS python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 12 SP5 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 python-Jinja2 Affected
Products past their end of life and not receiving proactive updates anymore.
SUSE CaaS Platform 4.0 python-Jinja2 Affected
SUSE Cloud Compute Node for SUSE Linux Enterprise 12 5 python-Jinja2 Affected
SUSE Enterprise Storage 1.0 python-Jinja2 Affected
SUSE Enterprise Storage 2 python-Jinja2 Affected
SUSE Enterprise Storage 2.1 python-Jinja2 Affected
SUSE Enterprise Storage 3 python-Jinja2 Affected
SUSE Enterprise Storage 6 python-Jinja2 Affected
SUSE Enterprise Storage 7 python-Jinja2 Affected
SUSE Enterprise Storage 7.1 python-Jinja2 Affected
SUSE Linux Enterprise Desktop 15 python-Jinja2 Affected
SUSE Linux Enterprise Desktop 15 SP1 python-Jinja2 Affected
SUSE Linux Enterprise Desktop 15 SP2 python-Jinja2 Affected
SUSE Linux Enterprise Desktop 15 SP3 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15-ESPOS python-Jinja2 Affected
SUSE Linux Enterprise High Performance Computing 15-LTSS python-Jinja2 Affected
SUSE Linux Enterprise Micro 5.0 python-Jinja2 Affected
SUSE Linux Enterprise Module for Advanced Systems Management 12 python-Jinja2 Affected
SUSE Linux Enterprise Module for Basesystem 15 python-Jinja2 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP1 python-Jinja2 Affected
SUSE Linux Enterprise Module for Python 2 15 SP1 python-Jinja2 Affected
SUSE Linux Enterprise Real Time 15 SP2 python-Jinja2 Affected
SUSE Linux Enterprise Real Time 15 SP3 python-Jinja2 Affected
SUSE Linux Enterprise Real Time 15 SP4 python-Jinja2 Affected
SUSE Linux Enterprise Server 12 python-Jinja2 Affected
SUSE Linux Enterprise Server 12 SP3 python-Jinja2 Affected
SUSE Linux Enterprise Server 12 SP4 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP1 python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP1-BCL python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP1-LTSS python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP2-BCL python-Jinja2 Affected
SUSE Linux Enterprise Server 15 SP3-BCL python-Jinja2 Affected
SUSE Linux Enterprise Server 15-LTSS python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 12 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 12 SP3 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 12 SP4 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 15 python-Jinja2 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 python-Jinja2 Affected
SUSE Manager Proxy 3.0 python-Jinja2 Affected
SUSE Manager Proxy 4.0 python-Jinja2 Affected
SUSE Manager Proxy 4.1 python-Jinja2 Affected
SUSE Manager Proxy 4.2 python-Jinja2 Affected
SUSE Manager Retail Branch Server 4.0 python-Jinja2 Affected
SUSE Manager Retail Branch Server 4.1 python-Jinja2 Affected
SUSE Manager Retail Branch Server 4.2 python-Jinja2 Affected
SUSE Manager Server 3.0 python-Jinja2 Affected
SUSE Manager Server 4.0 python-Jinja2 Affected
SUSE Manager Server 4.1 python-Jinja2 Affected
SUSE Manager Server 4.2 python-Jinja2 Affected
SUSE OpenStack Cloud 6 python-Jinja2 Affected
SUSE OpenStack Cloud 6-LTSS python-Jinja2 Affected
openSUSE Leap 15.3 python-Jinja2 Affected
openSUSE Leap 15.4 python-Jinja2 Affected
openSUSE Leap Micro 5.2 python-Jinja2 Affected
openSUSE Leap Micro 5.3 python-Jinja2 Affected
openSUSE Leap Micro 5.4 python-Jinja2 Affected


SUSE Timeline for this CVE

CVE page created: Mon Dec 23 18:00:16 2024
CVE page last modified: Tue Dec 24 17:57:34 2024