{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-41950",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-07-24T16:51:40.949Z",
        "datePublished": "2024-07-31T15:50:59.837Z",
        "dateUpdated": "2024-07-31T16:20:20.326Z"
    },
    "containers": {
        "cna": {
            "title": "Insecure Jinja2 templates rendered in Haystack Components can lead to RCE",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-1336",
                            "lang": "en",
                            "description": "CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 7.5,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/deepset-ai/haystack/security/advisories/GHSA-hx9v-6r9f-w677",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/deepset-ai/haystack/security/advisories/GHSA-hx9v-6r9f-w677"
                },
                {
                    "name": "https://github.com/deepset-ai/haystack/pull/8095",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/deepset-ai/haystack/pull/8095"
                },
                {
                    "name": "https://github.com/deepset-ai/haystack/pull/8096",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/deepset-ai/haystack/pull/8096"
                },
                {
                    "name": "https://github.com/deepset-ai/haystack/commit/3fed1366c448b02189851bf08166c1f6477a02b0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/deepset-ai/haystack/commit/3fed1366c448b02189851bf08166c1f6477a02b0"
                },
                {
                    "name": "https://github.com/deepset-ai/haystack/commit/6c25a5c73e83aa32c3241ba84a5cbb3ac0e8a89e",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/deepset-ai/haystack/commit/6c25a5c73e83aa32c3241ba84a5cbb3ac0e8a89e"
                },
                {
                    "name": "https://github.com/deepset-ai/haystack/releases/tag/v2.3.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/deepset-ai/haystack/releases/tag/v2.3.1"
                }
            ],
            "affected": [
                {
                    "vendor": "deepset-ai",
                    "product": "haystack",
                    "versions": [
                        {
                            "version": "< 2.3.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-07-31T15:50:59.837Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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`."
                }
            ],
            "source": {
                "advisory": "GHSA-hx9v-6r9f-w677",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "deepset",
                        "product": "haystack",
                        "cpes": [
                            "cpe:2.3:a:deepset:haystack:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "2.3.1",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-07-31T16:19:06.696483Z",
                                "id": "CVE-2024-41950",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-07-31T16:20:20.326Z"
                }
            }
        ]
    }
}