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.
CVE-2024-56326
This high-severity CVE scores 7.8 under NVD CVSS v3. EPSS exploit probability: 0.6%, top 31% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EPSS
- 39.5%
- KEV
- Not listed
Published
December 23, 2024
Last Modified
November 3, 2025
References (4)
- security-advisories@githubhttps://github.com/pallets/jinja/commit/48b0687e05a5466a91cd5812d604fa37ad0943b4
- security-advisories@githubhttps://github.com/pallets/jinja/releases/tag/3.1.5
- security-advisories@githubhttps://github.com/pallets/jinja/security/advisories/GHSA-q2x7-8rv6-6q7h
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html
Vendor Advisories for CVE-2024-56326(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2025:4576Red Hat Product SecurityHigh
Red Hat Security Advisory: Satellite 6.17.0 release
- RHSA-2025:3374Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Developer Hub 1.5.1 release.
- RHSA-2025:2700Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.13.56 security update
- RHSA-2025:2612Red Hat Product SecurityMedium
Red Hat Security Advisory: python-jinja2 security update
- RHSA-2025:2399Red Hat Product SecurityMedium
Red Hat Security Advisory: Satellite 6.16.3 Async Update
- RHSA-2025:1710Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.15.46 security and extras update
- RHSA-2025:1861Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenStack Platform 17.1.4 (openstack-ansible-core) security update
- RHSA-2025:1118Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.13.55 packages and security update
- +12 more
Patch Availability(25)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| jinja2 | 2.0 ... 3.1.4 (50 versions) | 3.1.5 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(19)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2024-563262025-01-15
Jinja has a sandbox breakout through indirect reference to format method
- Red HatRHBA-2025:0409MODERATE2024-12-23
RHBA-2025:0409 — Moderate
- Red HatRHBA-2025:0610MODERATE2024-12-23
RHBA-2025:0610 — Moderate
- Red HatRHSA-2025:0308MODERATE2024-12-23
RHSA-2025:0308 — Moderate
- Red HatRHSA-2025:0335MODERATE2024-12-23
RHSA-2025:0335 — Moderate
- Red HatRHSA-2025:0338MODERATE2024-12-23
RHSA-2025:0338 — Moderate
- Red HatRHSA-2025:0341MODERATE2024-12-23
RHSA-2025:0341 — Moderate
- Red HatRHSA-2025:0345MODERATE2024-12-23
RHSA-2025:0345 — Moderate
- Red HatRHSA-2025:0656MODERATE2024-12-23
RHSA-2025:0656 — Moderate
- Red HatRHSA-2025:0667MODERATE2024-12-23
RHSA-2025:0667 — Moderate
- Red HatRHSA-2025:0711MODERATE2024-12-23
RHSA-2025:0711 — Moderate
- Red HatRHSA-2025:0721MODERATE2024-12-23
RHSA-2025:0721 — Moderate
- Red HatRHSA-2025:0722MODERATE2024-12-23
RHSA-2025:0722 — Moderate
- Red HatRHSA-2025:0753MODERATE2024-12-23
RHSA-2025:0753 — Moderate
- Red HatRHSA-2025:0777MODERATE2024-12-23
RHSA-2025:0777 — Moderate
- Red HatRHSA-2025:0850MODERATE2024-12-23
RHSA-2025:0850 — Moderate
- Red HatRHSA-2025:0883MODERATE2024-12-23
RHSA-2025:0883 — Moderate
- Red HatRHSA-2025:0950MODERATE2024-12-23
RHSA-2025:0950 — Moderate
- Red HatRHSA-2025:0951MODERATE2024-12-23
RHSA-2025:0951 — Moderate
Data Freshness Timeline
(refreshed 9× in last 7d / 45× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-16 17:02 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-13 22:29 UTCEPSS rescore
- 2026-07-13 15:38 UTCOSV refresh
- 2026-07-13 06:12 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:14 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-29 14:05 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
Show 68 moreShow fewer
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:01 UTCOSV refresh
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-14 23:17 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-08 03:58 UTCOSV refresh
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-23 16:08 UTCEG score recompute
- 2026-05-23 16:08 UTCVendor advisory
- 2026-05-23 15:05 UTCOSV refresh
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-693 · CWE-1336
- CVE-2021-32835EG 9.9EPSS 91%CRITICAL
- CVE-2019-10328EG 9.9CRITICAL
- CVE-2019-1003030EG 9.9 KEVEPSS 99%CRITICAL
- CVE-2021-27497NVD 6.5EG 9.8MEDIUM
- CVE-2021-46703EG 9.8CRITICAL
- CVE-2020-10887EG 9.8EPSS 90%CRITICAL
- CVE-2017-3197EG 9.8EPSS 92%CRITICAL
- CVE-2018-9318EG 9.8EPSS 90%CRITICAL
- CVE-2018-9311EG 9.8CRITICAL
- CVE-2013-2465EG 9.8 KEVEPSS 100%CRITICAL
Frequently asked(5)
What is CVE-2024-56326?
When was CVE-2024-56326 disclosed?
Is CVE-2024-56326 actively exploited?
What is the CVSS score of CVE-2024-56326?
How do I remediate CVE-2024-56326?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2024-56326
Is Your Infrastructure Affected by CVE-2024-56326?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.