CVSS 3.1
6.1 mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NMedium (6.1) in palletsprojects jinja. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in jinja2 3.1.3.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:Njinja2 (PyPI): fixed in 3.1.3Explain CVE-2024-22195 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-22195?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-22195?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-22195 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.3 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-h5c8-rqwp-cp95 | PyPI | jinja2 | <3.1.3 | 3.1.3 |
| PYSEC-2026-1473 | PyPI | jinja2 | <3.1.3 | 3.1.3 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | jinja2 | 2.10-2+deb10u1 | DLA-3715-1 |
| Debian | 11 | jinja2 | 2.11.3-1+deb11u1 | DLA-3988-1 |
| Debian | 12 | jinja2 | 3.1.2-1+deb12u1 | DEBIAN-CVE-2024-22195 |
| Debian | 13, 14 | jinja2 | 3.1.3-1 | DEBIAN-CVE-2024-22195 |
| Ubuntu | 20.04:LTS | jinja2 | 2.10.1-2ubuntu0.2 | UBUNTU-CVE-2024-22195 USN-6599-1 |
| Ubuntu | 22.04:LTS | jinja2 | 3.0.3-1ubuntu0.1 | UBUNTU-CVE-2024-22195 USN-6599-1 |
| Ubuntu | 24.04:LTS | jinja2 | 3.1.2-1ubuntu1 | UBUNTU-CVE-2024-22195 |
| Ubuntu | Pro:14.04:LTS | jinja2 | 2.7.2-2ubuntu0.1~esm2 | UBUNTU-CVE-2024-22195 USN-6599-1 |
| Ubuntu | Pro:16.04:LTS | jinja2 | 2.8-1ubuntu0.1+esm2 | UBUNTU-CVE-2024-22195 USN-6599-1 |
| Ubuntu | Pro:18.04:LTS | jinja2 | 2.10-1ubuntu0.18.04.1+esm1 | UBUNTU-CVE-2024-22195 USN-6599-1 |
| Red Hat | ansible_automation_platform:2.4::el8 | ansible-automation-platform-installer | 0:2.4-6.el8ap | RHSA-2024:1057 |
| Red Hat | ansible_automation_platform:2.4::el8 | ansible-rulebook, automation-eda-controller, automation-eda-controller-ui and 1 more | 0:1.0.5-1.el8ap | RHSA-2024:1057 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-controller-venv-tower | 0:4.5.5-2.el8ap | RHSA-2024:1640 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more | 0:3.9.1-1.el8ap | RHSA-2024:1057 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more | 0:3.9.3-1.el8ap | RHSA-2024:1640 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-django, python3x-django | 0:4.2.10-1.el8ap | RHSA-2024:1057 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-django, python3x-django | 0:4.2.11-1.el8ap | RHSA-2024:1640 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-pillow, python3x-pillow, python39-pillow-debuginfo and 1 more | 0:10.0.1-1.el8ap | RHSA-2024:1057 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-pycryptodomex, python3x-pycryptodomex, python39-pycryptodomex-debuginfo and 1 more | 0:3.20.0-1.el8ap | RHSA-2024:1057 |
| 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.3-1.el8ap | RHSA-2024:1057 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8 | python39-pygments, python3x-pygments | 0:2.17.2-1.el8ap | RHSA-2024:1057 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8 | receptor, receptorctl | 0:1.4.5-1.el8ap | RHSA-2024:1640 |
| 97 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy, saltbundlepy-core | 3.11.15-90002.4.15.1 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-cffi | 1.17.1-90002.3.6.2 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-cryptography | 3.3.2-90002.3.6.2 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-cssselect | 1.3.0-90002.3.6.2 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-editables | 0.5-90002.3.3.2 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test | 1.2.2-90002.3.3.2 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-flit-core | 3.12.0-90002.3.3.1 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test | 25.1.0-90002.3.3.1 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test | 0.5.0-90002.3.3.1 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-hatchling | 1.31.0-90002.3.3.1 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-idna | 3.10-90002.3.6.2 | SUSE-SU-2026:4582-1 |
| SUSE | EL-9:Update:Products:MultiLinuxManagerTools:Update | saltbundlepy-iniconfig | 2.1.0-90002.3.3.1 | SUSE-SU-2026:4582-1 |
| 120 more for SUSE in the JSON and on SUSE's page. | ||||
| 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.3-1.1 | openSUSE-SU-2024:13581-1 |
| openSUSE | Tumbleweed | python-Jinja2 | 3.1.6-2.4 | openSUSE-SU-2026:11992-1 |
| AlmaLinux | 8 | babel, python2-babel | 2.5.1-10.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | fence-agents-all, fence-agents-apc, fence-agents-aws and 44 more | 4.2.1-129.el8 | ALSA-2024:2968 |
| AlmaLinux | 8 | python2, python2-libs, python2-test and 4 more | 2.7.18-17.module_el8.10.0+3783+2756348e.alma | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-Cython | 0.28.1-7.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-Cython | 0.28.1-7.module_el8.6.0+3162+01a09e5a | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-PyMySQL | 0.8.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-attrs | 17.4.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-backports | 1.0-16.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-backports | 1.0-16.module_el8.6.0+3162+01a09e5a | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-backports-ssl_match_hostname | 3.5.0.1-12.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-bson, python2-pymongo, python2-pymongo-gridfs | 3.7.0-1.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-bson, python2-pymongo, python2-pymongo-gridfs | 3.7.0-1.module_el8.6.0+3162+01a09e5a | ALSA-2024:2987 |
| 33 more for AlmaLinux in the JSON. | ||||
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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
The identified issue is classified as moderate due to a cross-site scripting (XSS) vulnerability in Jinja2. This flaw arises from the xmlattr filter, which permits keys with spaces, contrary to XML/HTML attribute standards. In scenarios where an application accepts user-input keys and renders them for other users, attackers can exploit this vulnerability to inject additional attributes, potentially resulting in XSS attacks. The misuse of the xmlattr filter facilitates the injection of arbitrary HTML attributes, allowing attackers to bypass auto-escaping mechanisms and potentially evade attribute validation checks, posing a moderate security risk.
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | python3x-jinja2-0:3.1.3-1.el8ap | Fixed 2024-02-29 | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | automation-controller-0:4.5.5-2.el8ap | Fixed 2024-04-02 | RHSA-2024:1640 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | python-jinja2-0:3.1.3-1.el9ap | Fixed 2024-02-29 | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | automation-controller-0:4.5.5-2.el9ap | Fixed 2024-04-02 | RHSA-2024:1640 |
| Red Hat Ceph Storage 7.1 | rhceph/ceph-nvmeof-cli-rhel9:1.2.13-4 | Fixed 2024-06-13 | RHSA-2024:3927 |
| Red Hat Ceph Storage 7.1 | rhceph/ceph-nvmeof-rhel9:1.2.13-4 | Fixed 2024-06-13 | RHSA-2024:3927 |
| Red Hat Ceph Storage 7.1 | rhceph/grafana-rhel9:10.4.0-9 | Fixed 2024-06-13 | RHSA-2024:3927 |
| Red Hat Ceph Storage 7.1 | rhceph/keepalived-rhel9:2.2.8-20 | Fixed 2024-06-13 | RHSA-2024:3927 |
| Red Hat Ceph Storage 7.1 | rhceph/rhceph-7-rhel9:7-385 | Fixed 2024-06-13 | RHSA-2024:3927 |
| Red Hat Ceph Storage 7.1 | rhceph/rhceph-haproxy-rhel9:2.4.22-21 | Fixed 2024-06-13 | RHSA-2024:3927 |
| 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 Developer Hub 1 | rhdh/rhdh-hub-rhel9 | Not affected | |
| 35 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-22195.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.