{"id":"USN-7244-1","summary":"jinja2 vulnerabilities","details":"It was discovered that Jinja2 incorrectly handled certain filenames when\ncompiling template content. An attacker could possibly use this issue to\nexecute arbitrary code. (CVE-2024-56201)\n\nIt was discovered that Jinja2 incorrectly handled string formatting calls.\nAn attacker could possibly use this issue to execute arbitrary code.\n(CVE-2024-56326)\n","modified":"2026-11-24T14:51:29.639491098Z","published":"2025-01-30T01:13:07Z","related":["UBUNTU-CVE-2024-56201","UBUNTU-CVE-2024-56326"],"upstream":["CVE-2024-56201","CVE-2024-56326","UBUNTU-CVE-2024-56201","UBUNTU-CVE-2024-56326"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7244-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-56201"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-56326"}],"affected":[{"package":{"name":"jinja2","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/jinja2?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10-1ubuntu0.18.04.1+esm3"}]}],"versions":["2.9.6-1","2.10-1","2.10-1ubuntu0.18.04.1","2.10-1ubuntu0.18.04.1+esm1","2.10-1ubuntu0.18.04.1+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"python-jinja2","binary_version":"2.10-1ubuntu0.18.04.1+esm3"},{"binary_name":"python3-jinja2","binary_version":"2.10-1ubuntu0.18.04.1+esm3"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7244-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[{"severity":[{"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","source":"CNA"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"NVD"},{"score":"medium","source":"SELF","type":"Ubuntu"}],"id":"CVE-2024-56201"},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"source":"CNA","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"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2024-56326"}]}}},{"package":{"name":"jinja2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/jinja2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.1-2ubuntu0.4"}]}],"versions":["2.10-2ubuntu1","2.10-2ubuntu2","2.10.1-1ubuntu1","2.10.1-2","2.10.1-2ubuntu0.2","2.10.1-2ubuntu0.3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.10.1-2ubuntu0.4","binary_name":"python-jinja2"},{"binary_name":"python3-jinja2","binary_version":"2.10.1-2ubuntu0.4"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7244-1.json","cves_map":{"cves":[{"severity":[{"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","source":"CNA","type":"CVSS_V4"},{"score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"NVD","type":"CVSS_V3"},{"score":"medium","source":"SELF","type":"Ubuntu"}],"id":"CVE-2024-56201"},{"id":"CVE-2024-56326","severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"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","source":"CNA"},{"source":"SELF","type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:20.04:LTS"}}},{"package":{"name":"jinja2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/jinja2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.3-1ubuntu0.3"}]}],"versions":["2.11.3-1","3.0.1-2","3.0.3-1","3.0.3-1ubuntu0.1","3.0.3-1ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-jinja2","binary_version":"3.0.3-1ubuntu0.3"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[{"severity":[{"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","source":"CNA"},{"score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"NVD","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2024-56201"},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"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","source":"CNA","type":"CVSS_V4"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2024-56326"}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7244-1.json"}},{"package":{"name":"jinja2","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/jinja2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-1ubuntu1.2"}]}],"versions":["3.1.2-1","3.1.2-1ubuntu1","3.1.2-1ubuntu1.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-jinja2","binary_version":"3.1.2-1ubuntu1.2"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:24.04:LTS","cves":[{"id":"CVE-2024-56201","severity":[{"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","source":"CNA","type":"CVSS_V4"},{"score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"NVD","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"id":"CVE-2024-56326","severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"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","source":"CNA","type":"CVSS_V4"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7244-1.json"}}],"schema_version":"1.9.2"}