Jinja has a sandbox breakout through indirect reference to 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 |
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Ansible Automation Platform Execution Environments | |||
| ansible-automation-platform/ee-minimal-rhel8:2.14.13-24 | cpe:/a:redhat:ansible_automation_platform:ee::el8 | RHSA-2025:0753 | 2025-01-28T00:00:00Z |
| ansible-automation-platform/ee-minimal-rhel9:2.18.1-4 | cpe:/a:redhat:ansible_automation_platform:ee::el8 | RHSA-2025:0753 | 2025-01-28T00:00:00Z |
| ansible-automation-platform/ee-minimal-rhel8:2.16.14-8 | cpe:/a:redhat:ansible_automation_platform:ee::el8 | RHSA-2025:1101 | 2025-02-05T00:00:00Z |
| ansible-automation-platform/ee-minimal-rhel9:2.15.13-10 | cpe:/a:redhat:ansible_automation_platform:ee::el8 | RHSA-2025:1101 | 2025-02-05T00:00:00Z |
| Discovery 1 for RHEL 9 | |||
| discovery/discovery-server-rhel9:1.12.0-1 | cpe:/o:redhat:discovery:1.0::el9 | RHSA-2025:1249 | 2025-02-10T00:00:00Z |
| discovery/discovery-ui-rhel9:1.12.0-1 | cpe:/o:redhat:discovery:1.0::el9 | RHSA-2025:1249 | 2025-02-10T00:00:00Z |
| Ironic content for Red Hat OpenShift Container Platform 4.12 | |||
| python-jinja2-0:3.0.1-6.el9.2 | cpe:/a:redhat:openshift_ironic:4.12::el9 | RHSA-2025:0834 | 2025-02-06T00:00:00Z |
| Ironic content for Red Hat OpenShift Container Platform 4.13 | |||
| python-jinja2-0:3.0.1-6.el9.2 | cpe:/a:redhat:openshift_ironic:4.13::el9 | RHSA-2025:1118 | 2025-02-13T00:00:00Z |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | |||
| automation-controller-0:4.5.17-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.4::el8 | RHSA-2025:0721 | 2025-01-27T00:00:00Z |
| python3x-jinja2-0:3.1.5-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.4::el8 | RHSA-2025:0721 | 2025-01-27T00:00:00Z |
| ansible-automation-platform-24/lightspeed-rhel8-operator:2.4-33 | cpe:/a:redhat:ansible_automation_platform:2.4::el8 | RHSA-2025:0722 | 2025-01-27T00:00:00Z |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | |||
| automation-controller-0:4.5.17-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.4::el9 | RHSA-2025:0721 | 2025-01-27T00:00:00Z |
| python-jinja2-0:3.1.5-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.4::el9 | RHSA-2025:0721 | 2025-01-27T00:00:00Z |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | |||
| ansible-automation-platform-25/lightspeed-rhel8:2.5.250107-1 | cpe:/a:redhat:ansible_automation_platform:2.5::el8 | RHSA-2025:0341 | 2025-01-15T00:00:00Z |
| automation-controller-0:4.6.7-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.5::el8 | RHSA-2025:0777 | 2025-01-28T00:00:00Z |
| python3.11-jinja2-0:3.1.5-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.5::el8 | RHSA-2025:0777 | 2025-01-28T00:00:00Z |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | |||
| automation-controller-0:4.6.7-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.5::el9 | RHSA-2025:0777 | 2025-01-28T00:00:00Z |
| python3.11-jinja2-0:3.1.5-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.5::el9 | RHSA-2025:0777 | 2025-01-28T00:00:00Z |
| Red Hat Developer Hub 1.3 on RHEL 9 | |||
| rhdh-hub-container-1.3-138 | cpe:/a:redhat:rhdh:1.3::el9 | RHBA-2025:0610 | 2025-01-22T00:00:00Z |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | |||
| python-jinja2-0:2.7.2-5.el7_9 | cpe:/o:redhat:rhel_els:7 | RHSA-2025:1250 | 2025-02-10T00:00:00Z |
| Red Hat Enterprise Linux 8 | |||
| python-jinja2-0:2.10.1-6.el8_10 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2025:0711 | 2025-01-27T00:00:00Z |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | |||
| python-jinja2-0:2.10.1-2.el8_2.3 | cpe:/a:redhat:rhel_aus:8.2 | RHSA-2025:2612 | 2025-03-11T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | |||
| python-jinja2-0:2.10.1-2.el8_4.1 | cpe:/a:redhat:rhel_aus:8.4 | RHSA-2025:1109 | 2025-02-06T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | |||
| python-jinja2-0:2.10.1-2.el8_4.1 | cpe:/a:redhat:rhel_tus:8.4 | RHSA-2025:1109 | 2025-02-06T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | |||
| python-jinja2-0:2.10.1-2.el8_4.1 | cpe:/a:redhat:rhel_e4s:8.4 | RHSA-2025:1109 | 2025-02-06T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | |||
| python-jinja2-0:2.10.1-4.el8_6.1 | cpe:/a:redhat:rhel_aus:8.6 | RHSA-2025:0950 | 2025-02-04T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | |||
| python-jinja2-0:2.10.1-4.el8_6.1 | cpe:/a:redhat:rhel_tus:8.6 | RHSA-2025:0950 | 2025-02-04T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | |||
| python-jinja2-0:2.10.1-4.el8_6.1 | cpe:/a:redhat:rhel_e4s:8.6 | RHSA-2025:0950 | 2025-02-04T00:00:00Z |
| Red Hat Enterprise Linux 8.8 Extended Update Support | |||
| python-jinja2-0:2.10.1-4.el8_8.1 | cpe:/a:redhat:rhel_eus:8.8 | RHSA-2025:0883 | 2025-02-03T00:00:00Z |
| Red Hat Enterprise Linux 9 | |||
| fence-agents-0:4.10.0-76.el9_5.4 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2025:0308 | 2025-01-14T00:00:00Z |
| python-jinja2-0:2.11.3-7.el9_5 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2025:0667 | 2025-01-23T00:00:00Z |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | |||
| fence-agents-0:4.10.0-20.el9_0.20 | cpe:/a:redhat:rhel_e4s:9.0 | RHSA-2025:0345 | 2025-01-15T00:00:00Z |
| python-jinja2-0:2.11.3-4.el9_0.1 | cpe:/a:redhat:rhel_e4s:9.0 | RHSA-2025:0951 | 2025-02-04T00:00:00Z |
| Red Hat Enterprise Linux 9.2 Extended Update Support | |||
| fence-agents-0:4.10.0-43.el9_2.11 | cpe:/a:redhat:rhel_eus:9.2 | RHSA-2025:0335 | 2025-01-15T00:00:00Z |
| python-jinja2-0:2.11.3-4.el9_2.1 | cpe:/a:redhat:rhel_eus:9.2 | RHSA-2025:0978 | 2025-02-04T00:00:00Z |
| Red Hat Enterprise Linux 9.4 Extended Update Support | |||
| fence-agents-0:4.10.0-62.el9_4.10 | cpe:/a:redhat:rhel_eus:9.4 | RHSA-2025:0338 | 2025-01-15T00:00:00Z |
| python-jinja2-0:2.11.3-6.el9_4 | cpe:/a:redhat:rhel_eus:9.4 | RHSA-2025:0850 | 2025-01-30T00:00:00Z |
| Red Hat OpenShift Container Platform 4.12 | |||
| openshift4/ose-ansible-operator:v4.12.0-202502040858.p0.g0bd975e.assembly.stream.el8 | cpe:/a:redhat:openshift:4.12::el8 | RHSA-2025:1241 | 2025-02-13T00:00:00Z |
| Red Hat OpenShift Container Platform 4.13 | |||
| openshift4/ose-ansible-operator:v4.13.0-202503111300.p0.g01bfabb.assembly.stream.el8 | cpe:/a:redhat:openshift:4.13::el8 | RHSA-2025:2700 | 2025-03-20T00:00:00Z |
| Red Hat OpenShift Container Platform 4.14 | |||
| python-jinja2-0:3.0.1-6.el9.2 | cpe:/a:redhat:openshift_ironic:4.14::el9 | RHSA-2025:0842 | 2025-02-06T00:00:00Z |
| Red Hat OpenShift Container Platform 4.15 | |||
| openshift4/ose-ansible-operator:v4.15.0-202502171304.p0.g52fc4b9.assembly.stream.el8 | cpe:/a:redhat:openshift:4.15::el8 | RHSA-2025:1710 | 2025-02-27T00:00:00Z |
| python-jinja2-0:3.0.1-6.el9.2 | cpe:/a:redhat:openshift_ironic:4.15::el9 | RHSA-2025:1130 | 2025-02-12T00:00:00Z |
| Red Hat OpenShift Container Platform 4.16 | |||
| openshift4/ose-ansible-rhel9-operator:v4.16.0-202501311735.p0.g2cb0020.assembly.stream.el9 | cpe:/a:redhat:openshift:4.16::el9 | RHSA-2025:1123 | 2025-02-12T00:00:00Z |
| python-jinja2-0:3.0.1-6.el9.2 | cpe:/a:redhat:openshift_ironic:4.16::el9 | RHSA-2025:0830 | 2025-02-10T00:00:00Z |
| Red Hat OpenShift Container Platform 4.17 | |||
| openshift4/ose-ansible-rhel9-operator:v4.17.0-202501300634.p0.g9cb5839.assembly.stream.el9 | cpe:/a:redhat:openshift:4.17::el9 | RHSA-2025:0875 | 2025-02-05T00:00:00Z |
| python-jinja2-0:3.1.5-1.el9 | cpe:/a:redhat:openshift_ironic:4.17::el9 | RHSA-2025:0656 | 2025-01-28T00:00:00Z |
| Red Hat OpenStack Platform 17.1 for RHEL 9 | |||
| openstack-ansible-core-0:2.14.2-4.6.el9ost | cpe:/a:redhat:openstack:17.1::el9 | RHSA-2025:1861 | 2025-02-25T00:00:00Z |
| Red Hat Satellite 6.16 for RHEL 8 | |||
| python-jinja2-0:3.1.5-1.el8pc | cpe:/a:redhat:satellite:6.16::el8 | RHSA-2025:2399 | 2025-03-05T00:00:00Z |
| python-jinja2-0:3.1.5-1.el8pc | cpe:/a:redhat:satellite_capsule:6.16::el8 | RHSA-2025:2399 | 2025-03-05T00:00:00Z |
| Red Hat Satellite 6.16 for RHEL 9 | |||
| python-jinja2-0:3.1.5-1.el9pc | cpe:/a:redhat:satellite:6.16::el9 | RHSA-2025:2399 | 2025-03-05T00:00:00Z |
| python-jinja2-0:3.1.5-1.el9pc | cpe:/a:redhat:satellite_capsule:6.16::el9 | RHSA-2025:2399 | 2025-03-05T00:00:00Z |
| Red Hat Satellite 6.17 for RHEL 9 | |||
| python-jinja2-0:3.1.5-1.el9pc | cpe:/a:redhat:satellite:6.17::el9 | RHSA-2025:4576 | 2025-05-06T00:00:00Z |
| python-jinja2-0:3.1.5-1.el9pc | cpe:/a:redhat:satellite_capsule:6.17::el9 | RHSA-2025:4576 | 2025-05-06T00:00:00Z |
| Red Hat Developer Hub (RHDH) 1.4 | |||
| registry.redhat.io/rhdh/rhdh-hub-rhel9:sha256:d8268197ba0466643efb818fcad8f0fc29e32463f75b0f7f51d9ce75ec717572 | cpe:/a:redhat:rhdh:1.4::el9 | RHBA-2025:0409 | 2025-01-20T00: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 |
EUVD |
EUVD-2024-3607 | Jinja is an extensible templating engine. Prior to 3.1.5, An oversight in how the Jinja sandboxed environment detects calls to str.format 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 store a reference to a malicious string's format method, then pass that to a filter that calls it. No such filters are built-in to Jinja, but could be present through custom filters in an application. After the fix, such indirect calls are also handled by the sandbox. This vulnerability is fixed in 3.1.5. |
Github GHSA |
GHSA-q2x7-8rv6-6q7h | Jinja has a sandbox breakout through indirect reference to format method |
Ubuntu USN |
USN-7244-1 | Jinja2 vulnerabilities |
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.522% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Palletsprojects
Palletsprojects jinja |
|
| CPEs | cpe:2.3:a:palletsprojects:jinja:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Palletsprojects
Palletsprojects jinja |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
epss
|
epss
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:satellite:6.17::el9 cpe:/a:redhat:satellite_capsule:6.17::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:rhdh:1.5::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:rhdh:1.3::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift:4.13::el8 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:rhel_aus:8.2 |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat satellite
Redhat satellite Capsule |
|
| CPEs | cpe:/a:redhat:satellite:6.16::el8 cpe:/a:redhat:satellite:6.16::el9 cpe:/a:redhat:satellite_capsule:6.16::el8 cpe:/a:redhat:satellite_capsule:6.16::el9 |
|
| Vendors & Products |
Redhat satellite
Redhat satellite Capsule |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift:4.15::el8 |
| 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 |
|---|---|---|
| First Time appeared |
Redhat rhdh
|
|
| CPEs | cpe:/a:redhat:openshift:4.12::el8 cpe:/a:redhat:openshift_ironic:4.13::el9 cpe:/a:redhat:rhdh:1.4::el9 |
|
| Vendors & Products |
Redhat rhdh
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat
Redhat ansible Automation Platform Redhat discovery Redhat enterprise Linux Redhat openshift Redhat openshift Ironic Redhat rhel Aus Redhat rhel E4s Redhat rhel Els Redhat rhel Eus Redhat rhel Tus |
|
| CPEs | cpe:/a:redhat:ansible_automation_platform:2.4::el8 cpe:/a:redhat:ansible_automation_platform:2.4::el9 cpe:/a:redhat:ansible_automation_platform:2.5::el8 cpe:/a:redhat:ansible_automation_platform:2.5::el9 cpe:/a:redhat:ansible_automation_platform:ee::el8 cpe:/a:redhat:enterprise_linux:8 cpe:/a:redhat:enterprise_linux:9 cpe:/a:redhat:openshift:4.16::el9 cpe:/a:redhat:openshift:4.17::el9 cpe:/a:redhat:openshift_ironic:4.12::el9 cpe:/a:redhat:openshift_ironic:4.14::el9 cpe:/a:redhat:openshift_ironic:4.15::el9 cpe:/a:redhat:openshift_ironic:4.16::el9 cpe:/a:redhat:openshift_ironic:4.17::el9 cpe:/a:redhat:rhel_aus:8.4 cpe:/a:redhat:rhel_aus:8.6 cpe:/a:redhat:rhel_e4s:8.4 cpe:/a:redhat:rhel_e4s:8.6 cpe:/a:redhat:rhel_e4s:9.0 cpe:/a:redhat:rhel_eus:8.8 cpe:/a:redhat:rhel_eus:9.2 cpe:/a:redhat:rhel_eus:9.4 cpe:/a:redhat:rhel_tus:8.4 cpe:/a:redhat:rhel_tus:8.6 cpe:/o:redhat:discovery:1.0::el9 cpe:/o:redhat:rhel_els:7 |
|
| Vendors & Products |
Redhat
Redhat ansible Automation Platform Redhat discovery Redhat enterprise Linux Redhat openshift Redhat openshift Ironic Redhat rhel Aus Redhat rhel E4s Redhat rhel Els Redhat rhel Eus Redhat rhel Tus |
|
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Jinja is an extensible templating engine. Prior to 3.1.5, An oversight in how the Jinja sandboxed environment detects calls to str.format 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 store a reference to a malicious string's format method, then pass that to a filter that calls it. No such filters are built-in to Jinja, but could be present through custom filters in an application. After the fix, such indirect calls are also handled by the sandbox. This vulnerability is fixed in 3.1.5. | |
| Title | Jinja has a sandbox breakout through indirect reference to format method | |
| Weaknesses | CWE-1336 CWE-693 |
|
| References |
| |
| Metrics |
cvssV4_0
|