{"id":"CVE-2024-41950","published":"2024-07-31T15:50:59Z","modified":"2024-07-31T16:20:20Z","title":"Insecure Jinja2 templates rendered in Haystack Components can lead to RCE","vendor":"deepset-ai","product":"haystack","tier":"tail","description":{"text":"Haystack is an end-to-end LLM framework that allows you to build applications powered by LLMs, Transformer models, vector search and more. Haystack clients that let their users create and run Pipelines from scratch are vulnerable to remote code executions. Certain Components in Haystack use Jinja2 templates, if anyone can create and render that template on the client machine they run any code. The vulnerability has been fixed with Haystack `2.3.1`.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01171,"percentile":0.68196,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/deepset-ai/haystack/security/advisories/GHSA-hx9v-6r9f-w677","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/deepset-ai/haystack/pull/8095","tags":["x_refsource_MISC"]},{"url":"https://github.com/deepset-ai/haystack/pull/8096","tags":["x_refsource_MISC"]},{"url":"https://github.com/deepset-ai/haystack/commit/3fed1366c448b02189851bf08166c1f6477a02b0","tags":["x_refsource_MISC"]},{"url":"https://github.com/deepset-ai/haystack/commit/6c25a5c73e83aa32c3241ba84a5cbb3ac0e8a89e","tags":["x_refsource_MISC"]},{"url":"https://github.com/deepset-ai/haystack/releases/tag/v2.3.1","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":13.64},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"deepset-ai","affectedVersions":[{"vendor":"deepset-ai","product":"haystack","versions":["< 2.3.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-07-31T16:19:06.696483Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"haystack-ai","vulnerableRanges":["<2.3.1"],"patched":["2.3.1"],"from":["GHSA-hx9v-6r9f-w677","PYSEC-2026-1447"],"provenance":"source"}],"summary":{"text":"The flaw is improper neutralization of special elements in Jinja2 templates rendered by certain Components in deepset-ai's Haystack LLM framework, which is exploitable when clients let users create and run Pipelines from scratch. An attacker who is able to create and render a crafted template on the client machine can execute arbitrary code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:51Z"},"euvd":{"id":"EUVD-2024-2367","exploited":false,"provenance":"source"}}