CVE catalog

CVE-2024-56201

Jinja2 vulnerabilities

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.31% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianjinja2sid3.1.6-4fixed
Debianjinja2forky3.1.6-4fixed
Debianjinja2trixie3.1.6-1fixed
Debianjinja2bookworm3.1.2-1+deb12u3fixed
Ubuntujinja2noble3.1.2-1ubuntu1.3fixed
Ubuntupython-jinja2-docnoble3.1.2-1ubuntu1.3fixed
Ubuntupython3-jinja2noble3.1.2-1ubuntu1.3fixed
Ubuntujinja2noble3.1.2-1ubuntu1.2fixed
Ubuntupython-jinja2-docnoble3.1.2-1ubuntu1.2fixed
Ubuntupython3-jinja2noble3.1.2-1ubuntu1.2fixed
Alpinepy3-jinja23.183.1.5-r0fixed
Alpinepy3-jinja23.193.1.5-r0fixed
Alpinepy3-jinja23.203.1.5-r0fixed
Alpinepy3-jinja23.213.1.5-r0fixed
Alpinepy3-jinja23.223.1.5-r0fixed
Alpinepy3-jinja23.233.1.5-r0fixed
Alpinepy3-jinja23.243.1.5-r0fixed
Ubuntujinja2pro2.9.6-1vulnerable
Ubuntujinja2pro2.10-1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm2vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm3vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm4fixed
Ubuntujinja220.042.10-2ubuntu1vulnerable
Ubuntujinja220.042.10-2ubuntu2vulnerable
Ubuntujinja220.042.10.1-1ubuntu1vulnerable
Ubuntujinja220.042.10.1-2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.3vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.4vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.5fixed
Ubuntujinja222.042.11.3-1vulnerable
Ubuntujinja222.043.0.1-2vulnerable
Ubuntujinja222.043.0.3-1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.2vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.3vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.4fixed
Ubuntujinja224.043.1.2-1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.2vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.3fixed
Susepython-Jinja2linux micro 6.13.1.4-slfo.1.1_2.1fixed
Susepython-Jinja2linux micro 6.03.1.2-7.1fixed
Ubuntujinja2pro2.9.6-1vulnerable
Ubuntujinja2pro2.10-1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm2vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm3fixed
Ubuntujinja220.042.10-2ubuntu1vulnerable
Ubuntujinja220.042.10-2ubuntu2vulnerable
Ubuntujinja220.042.10.1-1ubuntu1vulnerable
Ubuntujinja220.042.10.1-2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.3vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.4fixed
Ubuntujinja222.042.11.3-1vulnerable
Ubuntujinja222.043.0.1-2vulnerable
Ubuntujinja222.043.0.3-1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.2vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.3fixed
Ubuntujinja224.043.1.2-1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.2fixed
Ubuntujinja2pro2.9.6-1vulnerable
Ubuntujinja2pro2.10-1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm2vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm3fixed
Ubuntujinja220.042.10-2ubuntu1vulnerable
Ubuntujinja220.042.10-2ubuntu2vulnerable
Ubuntujinja220.042.10.1-1ubuntu1vulnerable
Ubuntujinja220.042.10.1-2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.3vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.4fixed
Ubuntujinja222.042.11.3-1vulnerable
Ubuntujinja222.043.0.1-2vulnerable
Ubuntujinja222.043.0.3-1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.2vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.3fixed
Ubuntujinja224.043.1.2-1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.2fixed
Susepython-Jinja2linux enterprise module for public cloud 15 sp43.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise module for python 3 15 sp63.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp4-espos3.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp4-ltss3.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp5-espos3.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp5-ltss3.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise server 15 sp4-ltss3.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise server 15 sp5-ltss3.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise server for sap applications 15 sp43.1.2-150400.12.11.1fixed
Susepython-Jinja2linux enterprise server for sap applications 15 sp53.1.2-150400.12.11.1fixed
Opensusepython-Jinja2leap 15.53.1.2-150400.12.11.1fixed
Opensusepython-Jinja2leap 15.63.1.2-150400.12.11.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianjinja2sourcesid3.1.5-1not yet assignedNot reported[1091329]
Debianjinja2sourceforky3.1.5-1not yet assignedNot reported[1091329]
Debianjinja2sourcetrixie3.1.5-1not yet assignedNot reported[1091329]
Debianjinja2sourcebookworm3.1.2-1+deb12u2not yet assignedNot reported[1091329]
Ubuntujinja2debnoble3.1.2-1ubuntu1.3Not reportedNot reportedNot reported
Ubuntupython-jinja2-docdebnoble3.1.2-1ubuntu1.3Not reportedNot reportedNot reported
Ubuntupython3-jinja2debnoble3.1.2-1ubuntu1.3Not reportedNot reportedNot reported
Ubuntujinja2debnoble3.1.2-1ubuntu1.2Not reportedNot reportedNot reported
Ubuntupython-jinja2-docdebnoble3.1.2-1ubuntu1.2Not reportedNot reportedNot reported
Ubuntupython3-jinja2debnoble3.1.2-1ubuntu1.2Not reportedNot reportedNot reported
Alpinepy3-jinja2apk3.183.1.5-r0Not reportedALPINE-CVE-2024-56201Not reported
Alpinepy3-jinja2apk3.193.1.5-r0Not reportedALPINE-CVE-2024-56201Not reported
Alpinepy3-jinja2apk3.203.1.5-r0Not reportedALPINE-CVE-2024-56201Not reported
Alpinepy3-jinja2apk3.213.1.5-r0Not reportedALPINE-CVE-2024-56201Not reported
Alpinepy3-jinja2apk3.223.1.5-r0Not reportedALPINE-CVE-2024-56201Not reported
Alpinepy3-jinja2apk3.233.1.5-r0Not reportedALPINE-CVE-2024-56201Not reported
Alpinepy3-jinja2apk3.243.1.5-r0Not reportedALPINE-CVE-2024-56201Not reported
Ubuntujinja2debpro2.10-1ubuntu0.18.04.1+esm4Not reportedUSN-7343-1Not reported
Ubuntujinja2deb20.042.10.1-2ubuntu0.5Not reportedUSN-7343-1Not reported
Ubuntujinja2deb22.043.0.3-1ubuntu0.4Not reportedUSN-7343-1Not reported
Ubuntujinja2deb24.043.1.2-1ubuntu1.3Not reportedUSN-7343-1Not reported
Susepython-Jinja2rpmlinux micro 6.13.1.4-slfo.1.1_2.1Not reportedSUSE-SU-2025:20254-1Not reported
Susepython-Jinja2rpmlinux micro 6.03.1.2-7.1Not reportedSUSE-SU-2025:20117-1Not reported
Ubuntujinja2debpro2.10-1ubuntu0.18.04.1+esm3Not reportedUSN-7244-1Not reported
Ubuntujinja2deb20.042.10.1-2ubuntu0.4Not reportedUSN-7244-1Not reported
Ubuntujinja2deb22.043.0.3-1ubuntu0.3Not reportedUSN-7244-1Not reported
Ubuntujinja2deb24.043.1.2-1ubuntu1.2Not reportedUSN-7244-1Not reported
Ubuntujinja2debpro2.10-1ubuntu0.18.04.1+esm3Not reportedUBUNTU-CVE-2024-56201Not reported
Ubuntujinja2deb20.042.10.1-2ubuntu0.4Not reportedUBUNTU-CVE-2024-56201Not reported
Ubuntujinja2deb22.043.0.3-1ubuntu0.3Not reportedUBUNTU-CVE-2024-56201Not reported
Ubuntujinja2deb24.043.1.2-1ubuntu1.2Not reportedUBUNTU-CVE-2024-56201Not reported
Susepython-Jinja2rpmlinux enterprise module for public cloud 15 sp43.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise module for python 3 15 sp63.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp4-espos3.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp4-ltss3.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp5-espos3.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp5-ltss3.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise server 15 sp4-ltss3.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise server 15 sp5-ltss3.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise server for sap applications 15 sp43.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Susepython-Jinja2rpmlinux enterprise server for sap applications 15 sp53.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Opensusepython-Jinja2rpmleap 15.53.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported
Opensusepython-Jinja2rpmleap 15.63.1.2-150400.12.11.1Not reportedSUSE-SU-2025:0006-1Not reported

[Debian bug #1091329]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [jinja2]

    Details (2)
    • 3.1.2-1+deb12u3 · all · bookworm

      Fixed · Fixed: 3.1.2-1+deb12u2

      usn · jinja2 · debian · bookworm; usn · jinja2 · debian · 12

    • 3.1.2-1+deb12u3 · all · bookworm

      Fixed · Fixed: 3.1.2-1+deb12u2

      usn · jinja2 · debian · bookworm; usn · jinja2 · debian · 12

  • Source package: [jinja2]

    Details (2)
    • 3.1.2-1+deb12u3 · all · bookworm

      Fixed · Fixed: 3.1.2-1+deb12u2

      usn · jinja2 · debian · bookworm; usn · jinja2 · debian · 12

    • 3.1.2-1+deb12u3 · all · bookworm

      Fixed · Fixed: 3.1.2-1+deb12u2

      usn · jinja2 · debian · bookworm; usn · jinja2 · debian · 12

[Debian 13 (Trixie)]

  • Source package: [jinja2]

    Details (2)
    • 3.1.6-1 · all · trixie

      Fixed · Fixed: 3.1.5-1

      usn · jinja2 · debian · 13

    • 3.1.6-1 · all · trixie

      Fixed · Fixed: 3.1.5-1

      usn · jinja2 · debian · 13

  • Source package: [jinja2]

    Details (2)
    • 3.1.6-1 · all · trixie

      Fixed · Fixed: 3.1.5-1

      usn · jinja2 · debian · 13

    • 3.1.6-1 · all · trixie

      Fixed · Fixed: 3.1.5-1

      usn · jinja2 · debian · 13

Observed:

References