CVEMETERBack to radar
OFFICIAL RECORD · Python packages

CVE-2024-56201

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 5.4 · medium

Jinja has a sandbox breakout through malicious filenames

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.307% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.

CVSS 4.0 · 5.4 · published by GitHub_M
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
Assessment source · checked 2026-11-19T12:57:21.287Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T12:57:21.287ZCVE Program
epssverified2026-11-19T16:04:39.514ZFIRST EPSS
patchesverified2026-11-19T12:52:20.708ZOSV
affectedverified2026-11-19T12:57:21.287ZCVE Program
lifecycleverified2026-11-19T12:57:21.287ZCVE Program

Affected versions and configuration

pallets jinja; default status: unknown: >= 3.0.0, < 3.1.5 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "pallets",
      "product": "jinja",
      "versions": [
        {
          "status": "affected",
          "version": ">= 3.0.0, < 3.1.5"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2024-56201",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2024-12-24T01:44:55.825619Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-02-18T21:47:42.763Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-gmj6-6f8f-6699",
  "aliases": [
    "CVE-2024-56201",
    "PYSEC-2026-1472"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "3.0.0"
            },
            {
              "fixed": "3.1.5"
            }
          ]
        }
      ],
      "package": {
        "name": "jinja2",
        "purl": "pkg:pypi/jinja2",
        "ecosystem": "PyPI"
      },
      "versions": [
        "3.0.0",
        "3.0.1",
        "3.0.2",
        "3.0.3",
        "3.1.0",
        "3.1.1",
        "3.1.2",
        "3.1.3",
        "3.1.4"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-gmj6-6f8f-6699/GHSA-gmj6-6f8f-6699.json",
        "last_known_affected_version_range": "<= 3.1.4"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    },
    {
      "type": "CVSS_V4",
      "score": "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"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/pallets/jinja/security/advisories/GHSA-gmj6-6f8f-6699",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-56201",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/pallets/jinja/issues/1792",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pallets/jinja/commit/767b23617628419ae3709ccfb02f9602ae9fe51f",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pallets/jinja",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/pallets/jinja/releases/tag/3.1.5",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-150"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2024-12-23T16:15:07Z",
    "github_reviewed_at": "2024-12-23T17:54:12Z"
  }
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "PYSEC-2026-1472",
  "aliases": [
    "CVE-2024-56201",
    "GHSA-gmj6-6f8f-6699"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "3.0.0"
            },
            {
              "fixed": "3.1.5"
            }
          ]
        }
      ],
      "package": {
        "name": "jinja2",
        "purl": "pkg:pypi/jinja2",
        "ecosystem": "PyPI"
      },
      "versions": [
        "3.0.0",
        "3.0.1",
        "3.0.2",
        "3.0.3",
        "3.1.0",
        "3.1.1",
        "3.1.2",
        "3.1.3",
        "3.1.4"
      ],
      "database_specific": {
        "source": "https://github.com/pypa/advisory-database/blob/main/vulns/jinja2/PYSEC-2026-1472.yaml"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    },
    {
      "type": "CVSS_V4",
      "score": "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"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/pallets/jinja/security/advisories/GHSA-gmj6-6f8f-6699",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-56201",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/pallets/jinja/issues/1792",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pallets/jinja/commit/767b23617628419ae3709ccfb02f9602ae9fe51f",
      "type": "FIX"
    },
    {
      "url": "https://github.com/pallets/jinja",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/pallets/jinja/releases/tag/3.1.5",
      "type": "WEB"
    },
    {
      "url": "https://pypi.org/project/jinja2",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/advisories/GHSA-gmj6-6f8f-6699",
      "type": "ADVISORY"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {}
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPyPI / packagejinja2Not a distribution channel3.1.5Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history