{"id":"CVE-2026-40320","published":"2026-04-17T17:25:50Z","modified":"2026-04-20T13:46:09Z","title":"Giskard has an Unsandboxed Jinja2 Template Rendering in ConformityCheck","vendor":"Giskard-AI","product":"giskard-oss","tier":"tail","description":{"text":"Giskard is an open-source testing framework for AI models. In versions prior to 1.0.2b1, the ConformityCheck class rendered the rule parameter through Jinja2's default Template() constructor, silently interpreting template expressions at runtime. If check definitions are loaded from an untrusted source, a crafted rule string could achieve arbitrary code execution. Exploitation requires write access to a check definition and subsequent execution of the test suite. This issue has been fixed in giskard-checks version 1.0.2b1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0015,"percentile":0.04223,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/Giskard-AI/giskard-oss/security/advisories/GHSA-7xjm-g8f4-rp26","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Giskard-AI/giskard-oss/releases/tag/giskard-checks%2Fv1.0.2b1","tags":["x_refsource_MISC"]}],"priority":{"score":4.6,"factors":[{"name":"EPSS percentile","points":0.84},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"giskard-ai","affectedVersions":[{"vendor":"Giskard-AI","product":"giskard-oss","versions":["< 1.0.2b1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-20T13:43:55.511255Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"giskard-checks","vulnerableRanges":["<1.0.2b1"],"patched":["1.0.2b1"],"from":["GHSA-7xjm-g8f4-rp26","PYSEC-2026-2488"],"provenance":"source"}],"summary":{"text":"The flaw is an unsandboxed Jinja2 template rendering in the ConformityCheck class of Giskard's open-source AI model testing framework (giskard-oss), where the rule parameter is rendered through the default Template() constructor so template expressions are interpreted at runtime. An attacker who can write to a check definition that is loaded from an untrusted source, and whose test suite is subsequently executed, can supply a crafted rule string to achieve arbitrary code execution; this requires local access with low privileges and user interaction to run the suite.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:12Z"},"euvd":{"id":"EUVD-2026-24060","exploited":false,"provenance":"source"}}