Skip to content

CVE-2024-41950 Insecure Jinja2 templates rendered in Haystack Components can lead to RCE

HighCVSS 7.5 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
deepset haystack < 2.3.1 2.3.1 Fixed
pypi haystack-ai(PyPI) < 2.3.1; = 2.0.0; = 2.0.0a1; = 2.0.0a2 +34 more 2.3.1 Fixed
deepset-ai haystack = < 2.3.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi haystack-ai(PyPI) < 2.3.1 2.3.1
pypi haystack-ai(PyPI) = 2.0.0 No fix listed
pypi haystack-ai(PyPI) = 2.0.0a1 No fix listed
pypi haystack-ai(PyPI) = 2.0.0a2 No fix listed
pypi haystack-ai(PyPI) = 2.0.0a3 No fix listed
pypi haystack-ai(PyPI) = 2.0.0b1 No fix listed
pypi haystack-ai(PyPI) = 2.0.0b2 No fix listed
pypi haystack-ai(PyPI) = 2.0.0b3 No fix listed
pypi haystack-ai(PyPI) = 2.0.0b4 No fix listed
pypi haystack-ai(PyPI) = 2.0.0b5 No fix listed
pypi haystack-ai(PyPI) = 2.0.0b6 No fix listed
pypi haystack-ai(PyPI) = 2.0.0b7 No fix listed
pypi haystack-ai(PyPI) = 2.0.0b8 No fix listed
pypi haystack-ai(PyPI) = 2.0.0rc1 No fix listed
pypi haystack-ai(PyPI) = 2.0.1 No fix listed
pypi haystack-ai(PyPI) = 2.0.1rc1 No fix listed
pypi haystack-ai(PyPI) = 2.0.1rc2 No fix listed
pypi haystack-ai(PyPI) = 2.1.0 No fix listed
pypi haystack-ai(PyPI) = 2.1.0rc1 No fix listed
pypi haystack-ai(PyPI) = 2.1.0rc2 No fix listed
pypi haystack-ai(PyPI) = 2.1.1 No fix listed
pypi haystack-ai(PyPI) = 2.1.1rc1 No fix listed
pypi haystack-ai(PyPI) = 2.1.2 No fix listed
pypi haystack-ai(PyPI) = 2.1.2rc1 No fix listed
pypi haystack-ai(PyPI) = 2.2.0 No fix listed
Show 15 more
ProductAffected versionsFixed in
pypi haystack-ai(PyPI) = 2.2.0rc1 No fix listed
pypi haystack-ai(PyPI) = 2.2.0rc2 No fix listed
pypi haystack-ai(PyPI) = 2.2.1 No fix listed
pypi haystack-ai(PyPI) = 2.2.1rc1 No fix listed
pypi haystack-ai(PyPI) = 2.2.2 No fix listed
pypi haystack-ai(PyPI) = 2.2.2rc1 No fix listed
pypi haystack-ai(PyPI) = 2.2.3 No fix listed
pypi haystack-ai(PyPI) = 2.2.4 No fix listed
pypi haystack-ai(PyPI) = 2.2.4rc1 No fix listed
pypi haystack-ai(PyPI) = 2.3.0 No fix listed
pypi haystack-ai(PyPI) = 2.3.0rc1 No fix listed
pypi haystack-ai(PyPI) = 2.3.0rc2 No fix listed
pypi haystack-ai(PyPI) = 2.3.1rc1 No fix listed
deepset-ai haystack = < 2.3.1 No fix listed
deepset haystack < 2.3.1 2.3.1

References