> CVE-2024-56326 [HIGH]

« BACK_TO_HOME
PUBLISHED
2024-12-23 16:15
MODIFIED
2025-09-22 17:41
CVSS_SCORE V3
7.8
EPSS (Prob. Exploit)
0.52%
Top 55.5%
DATA SOURCES:
NVD 🔗 2025-10-18 RED HAT 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-11 OSV 🔗 2026-11-08

> 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.

> AFFECTED_PRODUCTS

Palletsprojects - Jinja
< 3.1.5

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> RED HAT SECURITY ADVISORIES

Red Hat Security Advisory: Satellite 6.17.0 release
A new release is now available for Red Hat Satellite 6.17 for RHEL 9. Red Hat Product Security has classified this update as having a Moderate security impact. Each vulnerability includes a CVSS base...
Red Hat Security Advisory: Red Hat Developer Hub 1.5.1 release.
Red Hat Developer Hub 1.5.1 has been released.
Red Hat Security Advisory: OpenShift Container Platform 4.13.56 security update
Red Hat OpenShift Container Platform release 4.13.56 is now available with updates to packages and images that fix several bugs. This release includes a security update for Red Hat OpenShift Containe...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 8.2 Advanced Update Support. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common...
Red Hat Security Advisory: Satellite 6.16.3 Async Update
A new release is now available for Red Hat Satellite 6.16 for RHEL 8 and 9. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring Syst...
Red Hat Security Advisory: OpenShift Container Platform 4.15.46 security and extras update
Red Hat OpenShift Container Platform release 4.15.46 is now available with updates to packages and images that fix several bugs. This release includes a security update for Red Hat OpenShift Containe...
Red Hat Security Advisory: Red Hat OpenStack Platform 17.1.4 (openstack-ansible-core) security update
An update for openstack-ansible-core is now available for Red Hat OpenStack Platform 17.1 (Wallaby) for Red Hat Enterprise Linux 9.2. Red Hat Product Security has rated this update as having a securi...
Red Hat Security Advisory: OpenShift Container Platform 4.13.55 packages and security update
Red Hat OpenShift Container Platform release 4.13.55 is now available with updates to packages and images that fix several bugs and add enhancements. This release includes a security update for Red H...
Red Hat Security Advisory: OpenShift Container Platform 4.12.73 security and extras update
Red Hat OpenShift Container Platform release 4.12.73 is now available with updates to packages and images that fix several bugs. This release includes a security update for Red Hat OpenShift Containe...
Red Hat Security Advisory: OpenShift Container Platform 4.15.45 packages and security update
Red Hat OpenShift Container Platform release 4.15.45 is now available with updates to packages and images that fix several bugs and add enhancements. This release includes a security update for Red H...
Red Hat Security Advisory: OpenShift Container Platform 4.16.34 security and extras update
Red Hat OpenShift Container Platform release 4.16.34 is now available with updates to packages and images that fix several bugs. This release includes a security update for Red Hat OpenShift Containe...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 7 Extended Lifecycle Support. Red Hat Product Security has rated this update as having a security impact of Moderate. A Commo...
Red Hat Security Advisory: updated discovery container images
Updated container images are now available for Discovery 1.12.
Red Hat Security Advisory: OpenShift Container Platform 4.16.33 packages and security update
Red Hat OpenShift Container Platform release 4.16.33 is now available with updates to packages and images that fix several bugs and add enhancements. This release includes a security update for Red H...
Red Hat Security Advisory: OpenShift Container Platform 4.14.46 security update
Red Hat OpenShift Container Platform release 4.14.46 is now available with updates to packages and images that fix several bugs and add enhancements. This release includes a security update for Red H...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.4 Telecommunications Update Service, and Red Hat Ente...
Red Hat Security Advisory: OpenShift Container Platform 4.12.72 packages and security update
Red Hat OpenShift Container Platform release 4.12.72 bugs and add enhancements. This release includes a security update for Red Hat OpenShift Container Platform 4.12. Red Hat Product Security has ra...
Red Hat Security Advisory: Red Hat Ansible Automation Platform Execution Environments Container Release Update
An update is now available for Red Hat Ansible Automation Platform Execution Environments
Red Hat Security Advisory: OpenShift Container Platform 4.17.15 security and extras update
Red Hat OpenShift Container Platform release 4.17.15 is now available with updates to packages and images that fix several bugs. This release includes a security update for Red Hat OpenShift Containe...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 9.2 Extended Update Support. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions. Red Hat Product Security has rated this update as having a security impact of Importan...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions, and Red Hat Ente...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 8.8 Extended Update Support. Red Hat Product Security has rated this update as having a security impact of Important. A Commo...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 9.4 Extended Update Support. Red Hat Product Security has rated this update as having a security impact of Important. A Commo...
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
An update is now available for Red Hat Ansible Automation Platform 2.5 Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (...
Red Hat Security Advisory: OpenShift Container Platform 4.17.14 packages and security update
Red Hat OpenShift Container Platform release 4.17.14 is now available with updates to packages and images that fix several bugs and add enhancements. This release includes a security update for Red H...
Red Hat Security Advisory: Red Hat Ansible Automation Platform Execution Environments Container Release Update
An update is now available for Red Hat Ansible Automation Platform Execution Environments
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Container Release Update
An update is now available for Red Hat Ansible Automation Platform 2.4
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
An update is now available for Red Hat Ansible Automation Platform 2.4 Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 8. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring Sy...
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 9. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring Sy...
Red Hat Bug Fix Advisory: Red Hat Developer Hub 1.4.1 release.
Red Hat Developer Hub 1.4 has been released.
Red Hat Security Advisory: fence-agents security update
An update for fence-agents is now available for Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions. Red Hat Product Security has rated this update as having a security impact of Important...
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Container Release Update
An update is now available for Red Hat Ansible Automation Platform 2.5
Red Hat Security Advisory: fence-agents security update
An update for fence-agents is now available for Red Hat Enterprise Linux 9.4 Extended Update Support. Red Hat Product Security has rated this update as having a security impact of Important. A Common...
Red Hat Security Advisory: fence-agents security update
An update for fence-agents is now available for Red Hat Enterprise Linux 9.2 Extended Update Support. Red Hat Product Security has rated this update as having a security impact of Important. A Common...
Red Hat Security Advisory: fence-agents security update
An update for fence-agents is now available for Red Hat Enterprise Linux 9.

> RED HAT SEVERITY ASSESSMENT

THREAT SEVERITY
Moderate

> GITHUB SECURITY ADVISORY

GHSA-q2x7-8rv6-6q7h MODERATE

Jinja has a sandbox breakout through indirect reference to format method

AFFECTED PACKAGES:
PIP / jinja2
<= 3.1.4
Fixed in: 3.1.5

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Jinja has a sandbox breakout through indirect reference to format method

AFFECTED PACKAGES:
Unknown / Unknown
25 versions affected
ALIASES:
GHSA-q2x7-8rv6-6q7h, PYSEC-2026-1475

> HISTORIQUE DES MODIFICATIONS

Première apparition
23/12/2024 16:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:58
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
📊 ENRICHISSEMENT 18/10/2025 12:28
REDHAT
Champ modifié: Sévérité Red Hat
Ancienne valeur:
N/A
Nouvelle valeur:
{ "threat_severity": "Moderate", "severity_scale": null }
📊 ENRICHISSEMENT 18/10/2025 12:28
REDHAT
Champ modifié: Red Hat
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 3 Dernière mise à jour: 1 year ago
« BACK_TO_HOME