CVE-2024-41950
HIGH 7.5CVSS 3.1Insecure Jinja2 templates rendered in Haystack Components can lead to RCE
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.
- Published
- 31 Jul 2024
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-1336
- Also known as
- GHSA-hx9v-6r9f-w677PYSEC-2026-1447
- Sources
- NVDJSONOSV GHSA-hx9v-6r9f-w677JSONOSV PYSEC-2026-1447JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | haystack-ai | < 2.3.1 | 2.3.1 |
References
- https://github.com/deepset-ai/haystack/commit/3fed1366c448b02189851bf08166c1f6477a02b0 · WEB
- https://github.com/deepset-ai/haystack/commit/6c25a5c73e83aa32c3241ba84a5cbb3ac0e8a89e · WEB
- https://github.com/deepset-ai/haystack/pull/8095 · WEB
- https://github.com/deepset-ai/haystack/pull/8096 · WEB
- https://github.com/deepset-ai/haystack/releases/tag/v2.3.1 · WEB
- https://github.com/deepset-ai/haystack/security/advisories/GHSA-hx9v-6r9f-w677 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-41950 · ADVISORY
- https://github.com/deepset-ai/haystack · PACKAGE
- https://pypi.org/project/haystack-ai · PACKAGE
- https://github.com/advisories/GHSA-hx9v-6r9f-w677 · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 31 Jul 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Jul 2024)