Back
CVE-2024-41950
Insecure Jinja2 templates rendered in Haystack Components can lead to RCE
High7.5EPSS 1.2%
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
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`.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 1.2% · top 32% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
- affected < 2.3.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIhaystack-aiGHSA-hx9v-6r9f-w677 (opens in a new tab)
References (6)
- https://github.com/deepset-ai/haystack/security/advisories/GHSA-hx9v-6r9f-w677 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/deepset-ai/haystack/pull/8095 (opens in a new tab)x_refsource_MISC
- https://github.com/deepset-ai/haystack/pull/8096 (opens in a new tab)x_refsource_MISC
- https://github.com/deepset-ai/haystack/commit/3fed1366c448b02189851bf08166c1f6477a02b0 (opens in a new tab)x_refsource_MISC
- https://github.com/deepset-ai/haystack/commit/6c25a5c73e83aa32c3241ba84a5cbb3ac0e8a89e (opens in a new tab)x_refsource_MISC
- https://github.com/deepset-ai/haystack/releases/tag/v2.3.1 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-hx9v-6r9f-w677 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-41950)Record last updated .