CVE-2024-41950
published high CVSS 3.1 · 7.5Insecure Jinja2 templates rendered in Haystack Components can lead to RCE
Package status and fixes
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`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| deepset-ai | haystack | < 2.3.1 (affected) | GitHub_M · cna |
| deepset | haystack | 0 to < 2.3.1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
References
6- https://github.com/deepset-ai/haystack/commit/3fed1366c448b02189851bf08166c1f6477a02b0
- https://github.com/deepset-ai/haystack/commit/6c25a5c73e83aa32c3241ba84a5cbb3ac0e8a89e
- https://github.com/deepset-ai/haystack/pull/8095
- https://github.com/deepset-ai/haystack/pull/8096
- https://github.com/deepset-ai/haystack/releases/tag/v2.3.1
- https://github.com/deepset-ai/haystack/security/advisories/GHSA-hx9v-6r9f-w677
Provider assertions
2GitHub_M · cna
Insecure Jinja2 templates rendered in Haystack Components can lead to RCE
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fc81dc1b0e3dbba4f04349957d9ad69c0e313650f4e09f30d09125e2715eb6ed
- Ingested
- 23 Sep 2026, 08:26:31 UTC
- Source record
- Official CVE record