HighVulnerabilityLLM-specific
CVE-2024-41950: Haystack remote code execution through user-created Jinja2 templates
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2024-41950
- Published
- Record updated
- Affected
- haystack-ai < 2.3.1
- Fixed in
- 2.3.1
- released July 29, 2024, 2 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 1.2%
Summary
CVE-2024-41950 affects Haystack clients that let users create and run Pipelines from scratch. Certain Haystack Components use Jinja2 templates, and if an attacker can create and render such a template on the client machine, they can run arbitrary code. The weakness is classified as CWE-1336, Improper Neutralization of Special Elements Used in a Template Engine.
Mitigation
Fixed with Haystack 2.3.1.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- haystack-aiPyPILLM dependency since 2023-11-24 · 4 tracked dependents
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online