Skip to main content
VulnerabilityPublished Updated

CVE-2024-56201: jinja2 vulnerabilities

Affects jinja2Source GCVE Database

0
Compare

Mentioned vulnerabilities

Not known to be exploited · fixed in 2.7.2-2ubuntu0.1~esm6 : update jinja2 when convenient.

Data as of 24 Nov 2026, 17:24 UTC

Severity
Unrated

Rated by Threat Radar · No CVSS score from NVD or the CNA

Patch
Available – fixed in 2.7.2-2ubuntu0.1~esm6, 2.8-1ubuntu0.1+esm5, 2.10-1ubuntu0.18.04.1+esm4 +3

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSjinja2pkg:deb/ubuntu/jinja2?arch=source&distro=nobleOther threatsAffected
  • <3.1.2-1ubuntu1.3
Fixed in
  • 3.1.2-1ubuntu1.3
Ubuntu 22.04 LTSjinja2pkg:deb/ubuntu/jinja2?arch=source&distro=jammyOther threatsAffected
  • <3.0.3-1ubuntu0.4
Fixed in
  • 3.0.3-1ubuntu0.4
Ubuntu 20.04 LTSjinja2pkg:deb/ubuntu/jinja2?arch=source&distro=focalOther threatsAffected
  • <2.10.1-2ubuntu0.5
Fixed in
  • 2.10.1-2ubuntu0.5
Ubuntu Pro 18.04 LTSjinja2pkg:deb/ubuntu/jinja2?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <2.10-1ubuntu0.18.04.1+esm4
Fixed in
  • 2.10-1ubuntu0.18.04.1+esm4
Ubuntu Pro 16.04 LTSjinja2pkg:deb/ubuntu/jinja2?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <2.8-1ubuntu0.1+esm5
Fixed in
  • 2.8-1ubuntu0.1+esm5
Ubuntu Pro 14.04 LTSjinja2pkg:deb/ubuntu/jinja2?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • <2.7.2-2ubuntu0.1~esm6
Fixed in
  • 2.7.2-2ubuntu0.1~esm6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

Rafal Krupinski discovered that Jinja2 did not properly restrict the execution of code in situations where templates are used maliciously. An attacker with control over a template's filename and content could potentially use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2024-56201) It was discovered that Jinja2 sandboxed environments could be escaped through a call to a string format method. An attacker could possibly use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2024-56326) It was discovered that Jinja2 sandboxed environments could be escaped through the malicious use of certain filters. An attacker could possibly use this issue to enable the execution of arbitrary code. (CVE-2025-27516)

References

Community reviews

Loading reviews…