CVE-2024-41950: Haystack insecure Jinja2 templates RCE
Attack on AI2 Disclosed vulnerabilityInfrastructure vulnerability
Certain components in Haystack render insecure Jinja2 templates, allowing pipeline creators to achieve remote code execution. The vulnerability was resolved in version 2.3.1.
disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why
Details
- type
- Attack on AIAn AI model, agent or AI-powered product was the thing exploited, abused or leaked.
- categories
- Infrastructure vulnerabilityCVEs and advisories in AI frameworks, inference servers, MCP servers, AI developer tools and hosting stacks.
- Infrastructure vulnerability
- owasp llm top 10
- mitre atlas
- no technique for these categoriesBoth rows are derived from the type and categories (OWASP 2025 edition, ATLAS release 2026.09), not classified per record. How
- severity
- 2 · Disclosed vulnerabilityCVE or vendor advisory, patched or patchable, no confirmed exploitation.
- targets
- Framework / tooling
- products
- Haystack
- incident date
- 31 Jul 2024
- first reported
- 31 Jul 2024
- origin
- GitHub Advisory DatabaseVulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
- classifier confidence
- 0.95 · published at or above 0.80; see the methodology
- tags
- CVE-2024-41950 · rce · haystack · jinja2
- record
- created 2026-10-18 07:00Z · updated 2026-10-18 07:00Z · json
Sources · 1
- 2024-07-31CVE-2024-41950: Insecure Jinja2 templates rendered in Haystack Components can lead to RCEGitHub Advisory Database · github.com/advisories/GHSA-hx9v-6r9f-w677
Titles and links belong to their publishers. The summary above is written by GCD AI RADAR in its own words; data is CC BY-SA 4.0.
Related incidents
- 2024-08-29CVE-2024-45436: Ollama zip extraction directory traversal vulnerability2 Disclosedon AIInfra vuln2 src
- 2024-08-27CVE-2024-8181: Flowise authentication bypass vulnerability2 Disclosedon AIInfra vuln2 src
- 2024-08-27CVE-2024-8182: Flowise unauthenticated denial of service vulnerability2 Disclosedon AIInfra vuln2 src
- 2024-08-22CVE-2024-45201: LlamaIndex dynamic import execution vulnerability2 Disclosedon AIInfra vuln1 src
- 2024-08-12CVE-2024-42478: Arbitrary address read vulnerability in llama.cpp2 Disclosedon AIInfra vuln1 src
- 2024-08-12CVE-2024-42479: Arbitrary address write vulnerability in llama.cpp2 Disclosedon AIInfra vuln1 src