CVSS 3.1
5.4 mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NMedium (5.4). EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in jinja2 3.1.4.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:Njinja2 (PyPI): fixed in 3.1.4Explain CVE-2024-34064 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-34064?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-34064?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-34064 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.4 |
| fedoraproject:fedora | 39 |
| fedoraproject:fedora | 40 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-h75v-3vvj-5mfj | PyPI | jinja2 | <3.1.4 | 3.1.4 |
| PYSEC-2026-1474 | PyPI | jinja2 | <3.1.4 | 3.1.4 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | jinja2 | 2.11.3-1+deb11u1 | DLA-3988-1 |
| Debian | 12 | jinja2 | 3.1.2-1+deb12u1 | DEBIAN-CVE-2024-34064 |
| Debian | 13, 14 | jinja2 | 3.1.3-1.1 | DEBIAN-CVE-2024-34064 |
| Ubuntu | 20.04:LTS | jinja2 | 2.10.1-2ubuntu0.3 | UBUNTU-CVE-2024-34064 USN-6787-1 |
| Ubuntu | 22.04:LTS | jinja2 | 3.0.3-1ubuntu0.2 | UBUNTU-CVE-2024-34064 USN-6787-1 |
| Ubuntu | 24.04:LTS | jinja2 | 3.1.2-1ubuntu1.1 | UBUNTU-CVE-2024-34064 USN-6787-1 |
| Ubuntu | Pro:14.04:LTS | jinja2 | 2.7.2-2ubuntu0.1~esm3 | UBUNTU-CVE-2024-34064 USN-6787-1 |
| Ubuntu | Pro:16.04:LTS | jinja2 | 2.8-1ubuntu0.1+esm3 | UBUNTU-CVE-2024-34064 USN-6787-1 |
| Ubuntu | Pro:18.04:LTS | jinja2 | 2.10-1ubuntu0.18.04.1+esm2 | UBUNTU-CVE-2024-34064 USN-6787-1 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-controller-venv-tower | 0:4.5.7-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-controller-venv-tower | 0:4.5.8-1.el8ap | RHSA-2024:4522 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-hub, python39-galaxy-ng, python3x-galaxy-ng | 0:4.9.2-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more | 0:3.9.5-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-gunicorn, python3x-gunicorn | 0:22.0.0-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-pillow, python3x-pillow, python39-pillow-debuginfo and 1 more | 0:10.3.0-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-pydantic, python3x-pydantic | 0:1.10.15-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-social-auth-app-django, python3x-social-auth-app-django | 0:5.4.1-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-sqlparse, python3x-sqlparse | 0:0.5.0-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8 | python39-idna, python3x-idna | 0:3.7-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8 | python39-requests, python3x-requests | 0:2.32.2-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8 | python39-black, python3x-black | 0:22.8.0-2.el8ap | RHSA-2024:3781 |
| 61 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 4 more | python-Jinja2 | 2.10.1-150000.3.13.1 | SUSE-SU-2024:1863-1 |
| SUSE | Linux Enterprise Micro 5.5 | python-Jinja2 | 2.10.1-150000.3.13.1 | SUSE-SU-2024:1863-2 |
| SUSE | Linux Enterprise Module for Advanced Systems Management 12, Linux Enterprise Module for Public Cloud 12, Manager Client Tools 12 | python-Jinja2 | 2.8-19.26.1 | SUSE-SU-2024:1948-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP5, Linux Enterprise Module for Python 3 15 SP6 | python-Jinja2 | 3.1.2-150400.12.6.1 | SUSE-SU-2024:1864-1 |
| SUSE | Linux Micro 6.0 | python-Jinja2 | 3.1.2-6.1 | SUSE-SU-2025:20035-1 |
| openSUSE | Leap 15.5, Leap 15.6 | python-Jinja2 | 3.1.2-150400.12.6.1 | SUSE-SU-2024:1864-1 |
| openSUSE | Leap 15.5, Leap Micro 5.3, Leap Micro 5.4 | python-Jinja2 | 2.10.1-150000.3.13.1 | SUSE-SU-2024:1863-1 |
| openSUSE | Tumbleweed | python-Jinja2 | 3.1.4-1.1 | openSUSE-SU-2024:13930-1 |
| openSUSE | Tumbleweed | python-Jinja2 | 3.1.6-2.4 | openSUSE-SU-2026:11992-1 |
| AlmaLinux | 8 | python3-jinja2 | 2.10.1-5.el8_10 | ALSA-2024:4231 |
| AlmaLinux | 9 | fence-virt, fence-virtd, fence-virtd-cpg and 52 more | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | python3-jinja2 | 2.11.3-6.el9 | ALSA-2024:9150 |
| Rocky Linux | 8 | python-jinja2 | 0:2.10.1-5.el8_10 | RLSA-2024:4231 |
| Rocky Linux | 9 | fence-agents | 0:4.10.0-62.el9_4.3 | RLSA-2024:3820 |
| Rocky Linux | 9 | python-jinja2 | 0:2.11.3-6.el9 | RLSA-2024:9150 |
| Alpine | v3.17, v3.18, v3.19 and 5 more | py3-jinja2 | 3.1.4-r0 | ALPINE-CVE-2024-34064 |
| Azure Linux | 2 | nodejs18 | 18.20.3-4 | AZL-40444 |
| Azure Linux | 2 | python-jinja2 | 3.0.3-4 | AZL-40439 |
| Azure Linux | 3 | nodejs | 20.14.0-1 | AZL-40420 |
| Azure Linux | 3 | nodejs24 | 24.13.0-1 | AZL-75801 |
| Azure Linux | 3 | python-jinja2 | 3.1.2-2 | AZL-40369 |
| Alpaquita | 23, stream | py3-jinja2 | 3.1.4-r0 | BELL-CVE-2024-34064 |
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.
The fix for CVE-2024-22195 only addressed spaces, not other characters. Accepting keys as user input is now explicitly considered an unintended use case of the `xmlattr` filter, and code that does so without otherwise validating the input should be flagged as insecure, regardless of Jinja version. Accepting _values_ as user input continues to be safe.
Fence agents on RHEL 8 has been fixed as a part of https://access.redhat.com/errata/RHBA-2024:4238
Do not accept user input as keys to the xmlattr filter without validation. See the statement above for more information.
| Product | Package | State | Advisory |
|---|---|---|---|
| Ironic content for Red Hat OpenShift Container Platform 4.12 | python-jinja2-0:3.0.1-3.el9.1 | Fixed 2024-08-29 | RHSA-2024:5810 |
| Ironic content for Red Hat OpenShift Container Platform 4.13 | python-jinja2-0:3.0.1-3.el9.1 | Fixed 2024-09-04 | RHSA-2024:6011 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | python3x-jinja2-0:3.1.4-1.el8ap | Fixed 2024-06-10 | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | automation-controller-0:4.5.8-1.el8ap | Fixed 2024-07-12 | RHSA-2024:4522 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | python-jinja2-0:3.1.4-1.el9ap | Fixed 2024-06-10 | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | automation-controller-0:4.5.8-1.el9ap | Fixed 2024-07-12 | RHSA-2024:4522 |
| Red Hat Developer Hub 1.2 on RHEL 9 | rhdh/rhdh-hub-rhel9:1.2-105 | Fixed 2024-06-24 | RHEA-2024:4071 |
| Red Hat Enterprise Linux 8 | python-jinja2-0:2.10.1-5.el8_10 | Fixed 2024-07-02 | RHSA-2024:4231 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | fence-agents-0:4.2.1-65.el8_4.15 | Fixed 2024-06-11 | RHSA-2024:3795 |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | fence-agents-0:4.2.1-65.el8_4.15 | Fixed 2024-06-11 | RHSA-2024:3795 |
| Red Hat Ansible Automation Platform 1.2 | ansible-tower | Out of support scope | |
| Red Hat Ansible Automation Platform 2 | ansible-lint | Not affected | |
| Red Hat Ansible Automation Platform 2 | python3-jinja2 | Not affected | |
| Red Hat Ansible Automation Platform 2 | python3x-ansible-compat | Not affected | |
| Red Hat Ansible Automation Platform 2 | python3x-django-lifecycle | Not affected | |
| Red Hat Ansible Automation Platform 2 | python-ansible-compat | Not affected | |
| Red Hat Ansible Automation Platform 2 | python-django-lifecycle | Not affected | |
| Red Hat Ceph Storage 5 | cephadm-ansible | Out of support scope | |
| Red Hat Ceph Storage 6 | cephadm-ansible | Will not fix | |
| Red Hat Ceph Storage 7 | ceph | Not affected | |
| 229 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-34064.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.