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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/deepset-ai/haystack/security/advisories/GHSA-hx9v-6r9f-w677 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/deepset-ai/haystack/pull/8095 patch
- https://github.com/deepset-ai/haystack/pull/8096 patch
- https://github.com/deepset-ai/haystack/commit/3fed1366c448b02189851bf08166c1f6477a02b0 patch
- https://github.com/deepset-ai/haystack/commit/6c25a5c73e83aa32c3241ba84a5cbb3ac0e8a89e patch
- github.com product
- https://github.com/deepset-ai/haystack/releases/tag/v2.3.1
- pypi.org product
- github.com vendor-advisory