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.3% 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:C/C:H/I:H/A:Hjinja2 (PyPI): fixed in 3.1.5Explain CVE-2024-56201 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-56201?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-56201?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-56201 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 | from 3.0.0 before 3.1.5 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-gmj6-6f8f-6699 | PyPI | jinja2 | >=3.0.0 <3.1.5 | 3.1.5 |
| PYSEC-2026-1472 | PyPI | jinja2 | >=3.0.0 <3.1.5 | 3.1.5 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | jinja2 | 3.1.2-1+deb12u2 | DEBIAN-CVE-2024-56201 |
| Debian | 13, 14 | jinja2 | 3.1.5-1 | DEBIAN-CVE-2024-56201 |
| Ubuntu | 20.04:LTS | jinja2 | 2.10.1-2ubuntu0.4 | UBUNTU-CVE-2024-56201 USN-7244-1 USN-7343-1 |
| Ubuntu | 22.04:LTS | jinja2 | 3.0.3-1ubuntu0.3 | UBUNTU-CVE-2024-56201 USN-7244-1 USN-7343-1 |
| Ubuntu | 24.04:LTS | jinja2 | 3.1.2-1ubuntu1.2 | UBUNTU-CVE-2024-56201 USN-7244-1 USN-7343-1 |
| Ubuntu | Pro:14.04:LTS | jinja2 | 2.7.2-2ubuntu0.1~esm6 | UBUNTU-CVE-2024-56201 USN-7343-1 |
| Ubuntu | Pro:16.04:LTS | jinja2 | 2.8-1ubuntu0.1+esm5 | UBUNTU-CVE-2024-56201 USN-7343-1 |
| Ubuntu | Pro:18.04:LTS | jinja2 | 2.10-1ubuntu0.18.04.1+esm3 | UBUNTU-CVE-2024-56201 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:9::appstream | fence-virt, fence-virtd, fence-agents and 23 more | 0:4.10.0-76.el9_5.4 | RHSA-2025:0308 |
| Red Hat | enterprise_linux:9::highavailability, enterprise_linux:9::resilientstorage | fence-agents-all, fence-agents-apc, fence-agents-aws and 51 more | 0:4.10.0-76.el9_5.4 | RHSA-2025:0308 |
| 192 more for Red Hat in the JSON and on Red Hat's page. | ||||
| 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 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 | Tumbleweed | oci-cli | 3.54.1-1.1 | openSUSE-SU-2025:14997-1 |
| AlmaLinux | 9 | fence-virt, fence-virtd, fence-virtd-cpg and 10 more | 4.10.0-76.el9_5.4.alma.1 | ALSA-2025:0308 |
| Alpine | v3.18, v3.19, v3.20 and 4 more | py3-jinja2 | 3.1.5-r0 | ALPINE-CVE-2024-56201 |
| Azure Linux | 2 | python-jinja2 | 3.0.3-5 | AZL-54650 |
| Azure Linux | 3 | python-jinja2 | 3.1.2-2 | AZL-54660 |
| Alpaquita | 23 | py3-jinja2 | 3.1.6-r0 | BELL-CVE-2024-56201 |
| Alpaquita | stream | py3-jinja2 | 3.1.5-r0 | BELL-CVE-2024-56201 |
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; 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 Important.
This vulnerability has rated as a IMPORTANT flaw because an attacker controlling both the template content and filename to execute arbitrary Python code, bypassing the sandbox.
To mitigate this vulnerabilty restrict user-controlled template filenames, ensuring they follow a predefined templates.
| 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 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | aap-cloud-metrics-collector-container | Not affected | |
| 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-container | Not affected | |
| Red Hat Enterprise Linux 10 | python-jinja2 | Not affected | |
| 325 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-56201.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.