CVE catalog

CVE-2024-56326

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.52% · Oct 25, 2026

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.

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
Susepython-Jinja2manager client tools 122.8-19.31.1fixed
Susepython-Jinja2linux enterprise module for public cloud 122.8-19.31.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
Susepython-Jinja2linux enterprise micro 5.32.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise micro 5.42.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise micro 5.52.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise module for basesystem 15 sp62.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp3-ltss2.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp4-espos2.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp4-ltss2.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp5-espos2.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise high performance computing 15 sp5-ltss2.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise server 15 sp3-ltss2.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise server 15 sp4-ltss2.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise server 15 sp5-ltss2.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise server for sap applications 15 sp32.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise server for sap applications 15 sp42.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise server for sap applications 15 sp52.10.1-150000.3.18.1fixed
Susepython-Jinja2manager proxy 4.32.10.1-150000.3.18.1fixed
Susepython-Jinja2manager server 4.32.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise micro 5.12.10.1-150000.3.18.1fixed
Susepython-Jinja2linux enterprise micro 5.22.10.1-150000.3.18.1fixed
Susepython-Jinja2enterprise storage 7.12.10.1-150000.3.18.1fixed
Opensusepython-Jinja2leap micro 5.52.10.1-150000.3.18.1fixed
Opensusepython-Jinja2leap 15.52.10.1-150000.3.18.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianjinja2sourcesid3.1.5-1not yet assignedNot reported[1091331]
Debianjinja2sourceforky3.1.5-1not yet assignedNot reported[1091331]
Debianjinja2sourcetrixie3.1.5-1not yet assignedNot reported[1091331]
Debianjinja2sourcebookworm3.1.2-1+deb12u2not yet assignedNot reported[1091331]
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-56326Not reported
Alpinepy3-jinja2apk3.193.1.5-r0Not reportedALPINE-CVE-2024-56326Not reported
Alpinepy3-jinja2apk3.203.1.5-r0Not reportedALPINE-CVE-2024-56326Not reported
Alpinepy3-jinja2apk3.213.1.5-r0Not reportedALPINE-CVE-2024-56326Not reported
Alpinepy3-jinja2apk3.223.1.5-r0Not reportedALPINE-CVE-2024-56326Not reported
Alpinepy3-jinja2apk3.233.1.5-r0Not reportedALPINE-CVE-2024-56326Not reported
Alpinepy3-jinja2apk3.243.1.5-r0Not reportedALPINE-CVE-2024-56326Not reported
Susepython-Jinja2rpmmanager client tools 122.8-19.31.1Not reportedSUSE-SU-2025:0016-1Not reported
Susepython-Jinja2rpmlinux enterprise module for public cloud 122.8-19.31.1Not reportedSUSE-SU-2025:0016-1Not reported
Ubuntujinja2debpro2.10-1ubuntu0.18.04.1+esm3Not reportedUBUNTU-CVE-2024-56326Not reported
Ubuntujinja2deb20.042.10.1-2ubuntu0.4Not reportedUBUNTU-CVE-2024-56326Not reported
Ubuntujinja2deb22.043.0.3-1ubuntu0.3Not reportedUBUNTU-CVE-2024-56326Not reported
Ubuntujinja2deb24.043.1.2-1ubuntu1.2Not reportedUBUNTU-CVE-2024-56326Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.32.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.42.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.52.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise module for basesystem 15 sp62.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp3-ltss2.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp4-espos2.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp4-ltss2.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp5-espos2.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise high performance computing 15 sp5-ltss2.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise server 15 sp3-ltss2.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise server 15 sp4-ltss2.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise server 15 sp5-ltss2.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise server for sap applications 15 sp32.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise server for sap applications 15 sp42.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise server for sap applications 15 sp52.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmmanager proxy 4.32.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmmanager server 4.32.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.12.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.22.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Susepython-Jinja2rpmenterprise storage 7.12.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Opensusepython-Jinja2rpmleap micro 5.52.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported
Opensusepython-Jinja2rpmleap 15.52.10.1-150000.3.18.1Not reportedSUSE-SU-2025:0029-1Not reported

[Debian bug #1091331]

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