Haystack — Rce (CVE-2024-41950)
Date: 2024-07
Attack vector: rce
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2024-41950
CWE: CWE-1336
CVSS: 7.5 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H)

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`.


Mitigations:

Architectural layers (MAESTRO):