Jinja sandbox breakout through attr filter selecting format method
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pallets | jinja | affected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Ansible Automation Platform Execution Environments | |||
| ansible-automation-platform/ee-minimal-rhel8:2.17.9-3 | cpe:/a:redhat:ansible_automation_platform:ee::el8 | RHSA-2025:2664 | 2025-03-11T00:00:00Z |
| ansible-automation-platform/ee-minimal-rhel9:2.16.14-12 | cpe:/a:redhat:ansible_automation_platform:ee::el8 | RHSA-2025:2664 | 2025-03-11T00:00:00Z |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | |||
| automation-controller-0:4.5.20-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.4::el8 | RHSA-2025:3123 | 2025-03-24T00:00:00Z |
| python3x-jinja2-0:3.1.6-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.4::el8 | RHSA-2025:3123 | 2025-03-24T00:00:00Z |
| ansible-automation-platform-24/lightspeed-rhel8:2.4.250225-5 | cpe:/a:redhat:ansible_automation_platform:2.4::el8 | RHSA-2025:3124 | 2025-03-24T00:00:00Z |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | |||
| automation-controller-0:4.5.20-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.4::el9 | RHSA-2025:3123 | 2025-03-24T00:00:00Z |
| python-jinja2-0:3.1.6-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.4::el9 | RHSA-2025:3123 | 2025-03-24T00:00:00Z |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | |||
| automation-controller-0:4.6.10-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.5::el8 | RHSA-2025:3160 | 2025-03-25T00:00:00Z |
| python3.11-jinja2-0:3.1.6-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.5::el8 | RHSA-2025:3160 | 2025-03-25T00:00:00Z |
| ansible-automation-platform-25/lightspeed-rhel8:2.5.250318-2 | cpe:/a:redhat:ansible_automation_platform:2.5::el8 | RHSA-2025:3162 | 2025-03-25T00:00:00Z |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | |||
| automation-controller-0:4.6.10-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.5::el9 | RHSA-2025:3160 | 2025-03-25T00:00:00Z |
| python3.11-jinja2-0:3.1.6-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.5::el9 | RHSA-2025:3160 | 2025-03-25T00:00:00Z |
| Red Hat Enterprise Linux 10 | |||
| python-jinja2-0:3.1.6-1.el10_0 | cpe:/o:redhat:enterprise_linux:10.0 | RHSA-2025:7476 | 2025-05-13T00:00:00Z |
| Red Hat Enterprise Linux 8 | |||
| python-jinja2-0:2.10.1-7.el8_10 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2025:3388 | 2025-03-31T00:00:00Z |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | |||
| python-jinja2-0:2.10.1-2.el8_2.4 | cpe:/a:redhat:rhel_aus:8.2 | RHSA-2025:3671 | 2025-04-08T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | |||
| python-jinja2-0:2.10.1-2.el8_4.2 | cpe:/a:redhat:rhel_aus:8.4 | RHSA-2025:3562 | 2025-04-03T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | |||
| python-jinja2-0:2.10.1-2.el8_4.2 | cpe:/a:redhat:rhel_tus:8.4 | RHSA-2025:3562 | 2025-04-03T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | |||
| python-jinja2-0:2.10.1-2.el8_4.2 | cpe:/a:redhat:rhel_e4s:8.4 | RHSA-2025:3562 | 2025-04-03T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | |||
| python-jinja2-0:2.10.1-4.el8_6.2 | cpe:/a:redhat:rhel_aus:8.6 | RHSA-2025:3622 | 2025-04-07T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | |||
| python-jinja2-0:2.10.1-4.el8_6.2 | cpe:/a:redhat:rhel_tus:8.6 | RHSA-2025:3622 | 2025-04-07T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | |||
| python-jinja2-0:2.10.1-4.el8_6.2 | cpe:/a:redhat:rhel_e4s:8.6 | RHSA-2025:3622 | 2025-04-07T00:00:00Z |
| Red Hat Enterprise Linux 8.8 Extended Update Support | |||
| python-jinja2-0:2.10.1-5.el8_8 | cpe:/a:redhat:rhel_eus:8.8 | RHSA-2025:3580 | 2025-04-03T00:00:00Z |
| Red Hat Enterprise Linux 9 | |||
| fence-agents-0:4.10.0-76.el9_5.6 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2025:3113 | 2025-03-24T00:00:00Z |
| python-jinja2-0:2.11.3-8.el9_5 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2025:3406 | 2025-03-31T00:00:00Z |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | |||
| fence-agents-0:4.10.0-20.el9_0.21 | cpe:/a:redhat:rhel_e4s:9.0 | RHSA-2025:3017 | 2025-03-18T00:00:00Z |
| python-jinja2-0:2.11.3-5.el9_0 | cpe:/a:redhat:rhel_e4s:9.0 | RHSA-2025:3588 | 2025-04-03T00:00:00Z |
| Red Hat Enterprise Linux 9.2 Extended Update Support | |||
| fence-agents-0:4.10.0-43.el9_2.12 | cpe:/a:redhat:rhel_eus:9.2 | RHSA-2025:3111 | 2025-03-24T00:00:00Z |
| python-jinja2-0:2.11.3-5.el9_2 | cpe:/a:redhat:rhel_eus:9.2 | RHSA-2025:3585 | 2025-04-03T00:00:00Z |
| Red Hat Enterprise Linux 9.4 Extended Update Support | |||
| fence-agents-0:4.10.0-62.el9_4.11 | cpe:/a:redhat:rhel_eus:9.4 | RHSA-2025:2688 | 2025-03-12T00:00:00Z |
| python-jinja2-0:2.11.3-7.el9_4 | cpe:/a:redhat:rhel_eus:9.4 | RHSA-2025:3586 | 2025-04-03T00:00:00Z |
| Red Hat OpenShift Container Platform 4.12 | |||
| openshift4/ose-ansible-operator:v4.12.0-202504071758.p0.g0bd975e.assembly.stream.el8 | cpe:/a:redhat:openshift:4.12::el8 | RHSA-2025:4408 | 2025-05-08T00:00:00Z |
| Red Hat OpenShift Container Platform 4.13 | |||
| openshift-enterprise-ansible-operator-container-v4.13.0-202503310300.p0.g01bfabb.assembly.stream.el8 | cpe:/a:redhat:openshift:4.13::el8 | RHSA-2025:3779 | 2025-04-17T00:00:00Z |
| Red Hat OpenShift Container Platform 4.14 | |||
| openshift4/ose-ansible-operator:v4.14.0-202503310335.p0.g0ad973f.assembly.stream.el8 | cpe:/a:redhat:openshift:4.14::el8 | RHSA-2025:3568 | 2025-04-09T00:00:00Z |
| Red Hat OpenShift Container Platform 4.15 | |||
| openshift4/ose-ansible-operator:v4.15.0-202503310336.p0.g52fc4b9.assembly.stream.el8 | cpe:/a:redhat:openshift:4.15::el8 | RHSA-2025:3789 | 2025-04-16T00:00:00Z |
| Red Hat OpenShift Container Platform 4.16 | |||
| openshift4/ose-ansible-rhel9-operator:v4.16.0-202504251337.p0.g0719399.assembly.stream.el9 | cpe:/a:redhat:openshift:4.16::el9 | RHSA-2025:4730 | 2025-05-15T00:00:00Z |
| Red Hat OpenShift Container Platform 4.17 | |||
| openshift4/ose-ansible-rhel9-operator:v4.17.0-202504231305.p0.gc649d73.assembly.stream.el9 | cpe:/a:redhat:openshift:4.17::el9 | RHSA-2025:4203 | 2025-04-30T00:00:00Z |
| openshift4/ose-olm-operator-controller-rhel9:v4.17.0-202504281009.p0.g8bc0220.assembly.stream.el9 | cpe:/a:redhat:openshift:4.17::el9 | RHSA-2025:4431 | 2025-05-09T00:00:00Z |
| Red Hat OpenShift Container Platform 4.18 | |||
| openshift4/ose-olm-operator-controller-rhel9:v4.18.0-202504090803.p0.gd1ac0f8.assembly.stream.el9 | cpe:/a:redhat:openshift:4.18::el9 | RHSA-2025:3775 | 2025-04-16T00:00:00Z |
| openshift4/ose-ansible-rhel9-operator:v4.18.0-202504160934.p0.gb276665.assembly.stream.el9 | cpe:/a:redhat:openshift:4.18::el9 | RHSA-2025:4018 | 2025-04-22T00:00:00Z |
| Red Hat OpenStack Platform 17.1 for RHEL 9 | |||
| openstack-ansible-core-0:2.14.2-4.7.el9ost | cpe:/a:redhat:openstack:17.1::el9 | RHSA-2025:3371 | 2025-03-27T00:00:00Z |
| Red Hat Developer Hub (RHDH) 1.4 | |||
| registry.redhat.io/rhdh/rhdh-hub-rhel9:sha256:577bd1595325229ba368ad2ece71faf31aec93c088e76c4bba507bf67e41753a | cpe:/a:redhat:rhdh:1.4::el9 | RHSA-2025:3595 | 2025-04-03T00:00:00Z |
| RHDH 1.5 | |||
| registry.redhat.io/rhdh/rhdh-hub-rhel9:sha256:56bfbb2328f42e91d0462e142f3434e5d771737defbc07d8a21dbdf50e468665 | cpe:/a:redhat:rhdh:1.5::el9 | RHSA-2025:3374 | 2025-03-27T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-4126-1 | jinja2 security update |
Debian DLA |
DLA-4126-2 | jinja2 regression update |
EUVD |
EUVD-2025-6152 | Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter 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 use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6. |
Github GHSA |
GHSA-cpwx-vrp4-4pq7 | Jinja2 vulnerable to sandbox breakout through attr filter selecting format method |
Ubuntu USN |
USN-7343-1 | Jinja2 vulnerabilities |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.507% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Debian
Debian debian Linux Palletsprojects Palletsprojects jinja |
|
| CPEs | cpe:2.3:a:palletsprojects:jinja:*:*:*:*:*:*:*:* cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
|
| Vendors & Products |
Debian
Debian debian Linux Palletsprojects Palletsprojects jinja |
|
| Metrics |
cvssV3_1
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift:4.16::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/o:redhat:enterprise_linux:10.0 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift:4.12::el8 |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift:4.17::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift:4.13::el8 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift:4.15::el8 cpe:/a:redhat:openshift:4.18::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat openshift
|
|
| CPEs | cpe:/a:redhat:openshift:4.14::el8 | |
| Vendors & Products |
Redhat openshift
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:rhel_aus:8.2 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:rhel_aus:8.6 cpe:/a:redhat:rhel_e4s:8.6 cpe:/a:redhat:rhel_tus:8.6 |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat rhel Aus
Redhat rhel Tus |
|
| CPEs | cpe:/a:redhat:rhdh:1.4::el9 cpe:/a:redhat:rhel_aus:8.4 cpe:/a:redhat:rhel_e4s:8.4 cpe:/a:redhat:rhel_eus:8.8 cpe:/a:redhat:rhel_tus:8.4 |
|
| Vendors & Products |
Redhat rhel Aus
Redhat rhel Tus |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat rhdh
|
|
| CPEs | cpe:/a:redhat:enterprise_linux:8 cpe:/a:redhat:rhdh:1.5::el9 |
|
| Vendors & Products |
Redhat rhdh
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat openstack
|
|
| CPEs | cpe:/a:redhat:openstack:17.1::el9 | |
| Vendors & Products |
Redhat openstack
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:ansible_automation_platform:2.5::el8 cpe:/a:redhat:ansible_automation_platform:2.5::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat enterprise Linux
|
|
| CPEs | cpe:/a:redhat:ansible_automation_platform:2.4::el8 cpe:/a:redhat:ansible_automation_platform:2.4::el9 cpe:/a:redhat:enterprise_linux:9 cpe:/a:redhat:rhel_eus:9.2 |
|
| Vendors & Products |
Redhat enterprise Linux
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat rhel E4s
|
|
| CPEs | cpe:/a:redhat:rhel_e4s:9.0 | |
| Vendors & Products |
Redhat rhel E4s
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat rhel Eus
|
|
| CPEs | cpe:/a:redhat:rhel_eus:9.4 | |
| Vendors & Products |
Redhat rhel Eus
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat
Redhat ansible Automation Platform |
|
| CPEs | cpe:/a:redhat:ansible_automation_platform:ee::el8 | |
| Vendors & Products |
Redhat
Redhat ansible Automation Platform |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter 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 use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6. | |
| Title | Jinja sandbox breakout through attr filter selecting format method | |
| Weaknesses | CWE-1336 | |
| References |
| |
| Metrics |
cvssV4_0
|