Skip to main content
No exploitation reportedFix available

CVE-2024-56201

No exploitation reported by the sources we read.

  • Published2024-12-23
  • Fixed in3.1.5
  • WeaknessCWE-150

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Jinja is an extensible templating engine. In versions on the 3.x branch prior to 3.1.5, a bug in the Jinja compiler allows an attacker that controls both the content and filename of a template to execute arbitrary Python code, regardless of if Jinja's sandbox is used. To exploit the vulnerability, an attacker needs to control both the filename and the contents 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 where the template author can also choose the template filename. This vulnerability is fixed in 3.1.5.

Timeline

dates in UTC
  1. 2024-12-2316:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2024-56201?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2024-56201?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · OSV
Palletsprojects jinja
BranchAffectedFixed in
3.x≥ 3.0.0, < 3.1.53.1.5

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • fence-agentsRocky Linux:9all versions · fixed in 0:4.10.0-76.el9_5.4
  • fence-virtdAlmaLinux:9all versions · fixed in 4.10.0-76.el9_5.4.alma.1and 12 other packages

Vendor advisories

  • RHSA-2025:3397 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: RHOAI 2.16.0 - Red Hat OpenShift AI

  • RHSA-2025:3374 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Developer Hub 1.5.1 release.

  • RHSA-2025:3368 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: RHOAI 2.16.0 - Red Hat OpenShift AI

  • RHSA-2024:6121 Red Hat Product Security191 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.18.1 security and extras update

  • RHSA-2025:1123 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.16.34 security and extras update

  • RHSA-2025:0875 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.17.15 security and extras update

1 more advisory

Full record on NVD

Fix

  1. Update Palletsprojects jinja to 3.1.5
  2. Vendor fix Red Hat Product Security RHSA-2025:3397 · 1 productFor Red Hat OpenShift AI 2.16.0 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
  3. Vendor fix Red Hat Product Security RHSA-2025:3374 · 1 productFor more about Red Hat Developer Hub, see References links
  4. Vendor fix Red Hat Product Security RHSA-2024:6121 · 191 productsFor OpenShift Container Platform 4.18 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.18/release_notes/ocp-4-1…
  5. Vendor fix Red Hat Product Security RHSA-2025:1123 · 4 productsFor OpenShift Container Platform 4.16 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.16/release_notes/ocp-4-1…
  6. Vendor fix Red Hat Product Security RHSA-2025:0875 · 4 productsFor OpenShift Container Platform 4.17 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.17/release_notes/ocp-4-1…
  7. Workaround from the vendor Red Hat Product Security RHSA-2025:3397 · 27 productsTo mitigate this vulnerabilty restrict user-controlled template filenames, ensuring they follow a predefined templates.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

  • CISA-ADPSSVC decisionnone2024-12-24
  • OpenCVESSVC decisionnone—
  • CNACVSS 4.05.4read 2026-10-23
  • NVDCVSS 3.18.8read 2026-10-23
  • CNAweakness (CWE)CWE-150read 2026-10-23
  • FIRST EPSSEPSS score0.3 %2026-10-22
  • OSVaffected packages—

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS 4.0 vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2024-12-23
Last Modified
2026-06-17
NVD status
Analyzed

Frequently asked questions

What is CVE-2024-56201?

Jinja is an extensible templating engine. In versions on the 3.x branch prior to 3.1.5, a bug in the Jinja compiler allows an attacker that controls both the content and filename of a template to execute arbitrary Python code, regardless of if Jinja's sandbox is used. To exploit the vulnerability, an attacker needs to control both the filename and the contents 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 where the template author can also choose the template filename. This vulnerability is fixed in 3.1.5.

Is CVE-2024-56201 actively exploited?

Active exploitation of CVE-2024-56201 has not been confirmed. Its EPSS score was 0.3% on 2026-10-22, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-56201?

CVE-2024-56201 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

Running OpenShift Container Platform? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month