Skip to content
HighVulnerabilityLLM-specific

CVE-2024-41950: Haystack remote code execution through user-created Jinja2 templates

Identifier
CVE-2024-41950
Published
Record updated
View JSON
Affected
  • haystack-ai < 2.3.1
Fixed in
2.3.1
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.