CVE-2024-41950
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`.
Severity
HIGH
CVSS v3
7.5
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
1.171%
chance of exploitation in the next 30 days
higher than 68% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2024-07-31 |
Timeline
- 2024-07-31Published by the CNA15:50 UTC
- 2024-07-31GitHub advisory published (GHSA-hx9v-6r9f-w677)same day
- 2024-07-31CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-hx9v-6r9f-w677, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI haystack-ai | before 2.3.1 | 2.3.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| deepset-ai haystack |
References
- 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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-41950'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-41950'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-41950'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-41950'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).