CVE-2024-41950Insecure Jinja2 templates rendered in Haystack Components can lead to RCE
- 7.5HighCVSS base score
- 1.2%Exploitation in 30 daysEPSS · top 32% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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`.
Timeline
ID reserved
By GitHub_M
- 7 days later
· 7 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
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 (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
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
References6
- 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)
- EUVD EUVD-2024-2367 (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://cveledger.app/cve/CVE-2024-41950)Record last updated .