CVSS 4.0
5.4 mediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NMedium (5.4) in palletsprojects jinja. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in jinja2 3.1.5.
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hjinja2 (PyPI): fixed in 3.1.5Explain CVE-2024-56326 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-56326?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-56326?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-56326 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| palletsprojects:jinja | before 3.1.5 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-q2x7-8rv6-6q7h | PyPI | jinja2 | <3.1.5 | 3.1.5 |
| PYSEC-2026-1475 | PyPI | jinja2 | <3.1.5 | 3.1.5 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | jinja2 | 2.11.3-1+deb11u3 | DLA-4126-1 |
| Debian | 12 | jinja2 | 3.1.2-1+deb12u2 | DEBIAN-CVE-2024-56326 |
| Debian | 13, 14 | jinja2 | 3.1.5-1 | DEBIAN-CVE-2024-56326 |
| Ubuntu | 20.04:LTS | jinja2 | 2.10.1-2ubuntu0.4 | UBUNTU-CVE-2024-56326 USN-7244-1 USN-7343-1 |
| Ubuntu | 22.04:LTS | jinja2 | 3.0.3-1ubuntu0.3 | UBUNTU-CVE-2024-56326 USN-7244-1 USN-7343-1 |
| Ubuntu | 24.04:LTS | jinja2 | 3.1.2-1ubuntu1.2 | UBUNTU-CVE-2024-56326 USN-7244-1 USN-7343-1 |
| Ubuntu | Pro:14.04:LTS | jinja2 | 2.7.2-2ubuntu0.1~esm6 | UBUNTU-CVE-2024-56326 USN-7343-1 |
| Ubuntu | Pro:16.04:LTS | jinja2 | 2.8-1ubuntu0.1+esm5 | UBUNTU-CVE-2024-56326 USN-7343-1 |
| Ubuntu | Pro:18.04:LTS | jinja2 | 2.10-1ubuntu0.18.04.1+esm3 | UBUNTU-CVE-2024-56326 USN-7244-1 USN-7343-1 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-controller-venv-tower | 0:4.5.17-1.el8ap | RHSA-2025:0721 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8 | python39-jinja2, python3x-jinja2 | 0:3.1.5-1.el8ap | RHSA-2025:0721 |
| Red Hat | ansible_automation_platform:2.4::el9 | automation-controller-venv-tower | 0:4.5.17-1.el9ap | RHSA-2025:0721 |
| Red Hat | ansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9 | python-jinja2, python3-jinja2 | 0:3.1.5-1.el9ap | RHSA-2025:0721 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-controller-venv-tower | 0:4.6.7-1.el8ap | RHSA-2025:0777 |
| Red Hat | ansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8 | python3.11-django | 0:4.2.18-1.el8ap | RHSA-2025:0777 |
| Red Hat | ansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8 | python3.11-jinja2 | 0:3.1.5-1.el8ap | RHSA-2025:0777 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-controller-venv-tower | 0:4.6.7-1.el9ap | RHSA-2025:0777 |
| Red Hat | ansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9 | python3.11-django | 0:4.2.18-1.el9ap | RHSA-2025:0777 |
| Red Hat | ansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9, ansible_automation_platform_inside:2.5::el9 | python3.11-jinja2 | 0:3.1.5-1.el9ap | RHSA-2025:0777 |
| Red Hat | enterprise_linux:8::appstream | python-jinja2, python3-jinja2 | 0:2.10.1-6.el8_10 | RHSA-2025:0711 |
| Red Hat | enterprise_linux:9::appstream | fence-virt, fence-virtd, fence-agents and 23 more | 0:4.10.0-76.el9_5.4 | RHSA-2025:0308 |
| 245 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 17 more | python-Jinja2 | 2.10.1-150000.3.18.1 | SUSE-SU-2025:0029-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 more | python-Jinja2 | 3.1.2-150400.12.11.1 | SUSE-SU-2025:0006-1 |
| SUSE | Linux Enterprise Module for Public Cloud 12, Manager Client Tools 12 | python-Jinja2 | 2.8-19.31.1 | SUSE-SU-2025:0016-1 |
| SUSE | Linux Micro 6.0 | python-Jinja2 | 3.1.2-7.1 | SUSE-SU-2025:20117-1 |
| SUSE | Linux Micro 6.1 | python-Jinja2 | 3.1.4-slfo.1.1_2.1 | SUSE-SU-2025:20254-1 |
| openSUSE | Leap 15.5, Leap 15.6 | python-Jinja2 | 3.1.2-150400.12.11.1 | SUSE-SU-2025:0006-1 |
| openSUSE | Leap 15.5, Leap Micro 5.5 | python-Jinja2 | 2.10.1-150000.3.18.1 | SUSE-SU-2025:0029-1 |
| openSUSE | Tumbleweed | oci-cli | 3.54.1-1.1 | openSUSE-SU-2025:14997-1 |
| AlmaLinux | 8 | python3-jinja2 | 2.10.1-6.el8_10 | ALSA-2025:0711 |
| AlmaLinux | 9 | fence-virt, fence-virtd, fence-virtd-cpg and 10 more | 4.10.0-76.el9_5.4.alma.1 | ALSA-2025:0308 |
| AlmaLinux | 9 | python3-jinja2 | 2.11.3-7.el9_5 | ALSA-2025:0667 |
| Rocky Linux | 8 | python-jinja2 | 0:2.10.1-6.el8_10 | RLSA-2025:0711 |
| Rocky Linux | 9 | python-jinja2 | 0:2.11.3-7.el9_5 | RLSA-2025:0667 |
| Alpine | v3.18, v3.19, v3.20 and 4 more | py3-jinja2 | 3.1.5-r0 | ALPINE-CVE-2024-56326 |
| Azure Linux | 2 | python-jinja2 | 3.0.3-5 | AZL-54647 |
| Azure Linux | 3 | python-jinja2 | 3.1.2-2 | AZL-54654 |
| Alpaquita | 23 | py3-jinja2 | 3.1.6-r0 | BELL-CVE-2024-56326 |
| Alpaquita | stream | py3-jinja2 | 3.1.5-r0 | BELL-CVE-2024-56326 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.
Red Hat rates this Moderate.
This vulnerability is rated as Moderate due to an oversight in Jinja's sandbox environment, allowing attackers to execute arbitrary Python code through controlled template content. This requires control over template content, making exploitation possible only in specific applications, thus limiting its overall impact.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-minimal-rhel8:2.12.10-57 | Fixed 2025-01-28 | RHSA-2025:0753 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-minimal-rhel9:2.18.1-4 | Fixed 2025-01-28 | RHSA-2025:0753 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-minimal-rhel8:2.12.10-59 | Fixed 2025-02-05 | RHSA-2025:1101 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-minimal-rhel9:2.15.13-10 | Fixed 2025-02-05 | RHSA-2025:1101 |
| Discovery 1 for RHEL 9 | discovery/discovery-server-rhel9:1.12.0-1 | Fixed 2025-02-10 | RHSA-2025:1249 |
| Discovery 1 for RHEL 9 | discovery/discovery-ui-rhel9:1.12.0-1 | Fixed 2025-02-10 | RHSA-2025:1249 |
| Ironic content for Red Hat OpenShift Container Platform 4.12 | python-jinja2-0:3.0.1-6.el9.2 | Fixed 2025-02-06 | RHSA-2025:0834 |
| Ironic content for Red Hat OpenShift Container Platform 4.13 | python-jinja2-0:3.0.1-6.el9.2 | Fixed 2025-02-13 | RHSA-2025:1118 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | automation-controller-0:4.5.17-1.el8ap | Fixed 2025-01-27 | RHSA-2025:0721 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | python3x-jinja2-0:3.1.5-1.el8ap | Fixed 2025-01-27 | RHSA-2025:0721 |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-service-api-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 1.2 | ansible-tower | Not affected | |
| Red Hat Ansible Automation Platform 2 | aap-cloud-metrics-collector-container | Fix deferred | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/ee-dellemc-openmanage-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/ansible-dev-tools-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/de-supported-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/platform-resource-runner-rhel8 | Not affected | |
| Red Hat Developer Hub 1 | rhdh/rhdh-rhel9-operator | Not affected | |
| Red Hat Enterprise Linux 10 | flatpak-sdk | Not affected | |
| Red Hat Enterprise Linux 10 | python-jinja2 | Not affected | |
| 338 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-56326.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-693 (17).