{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-10940","published":"2025-03-20T10:15:21.850000Z","last_modified":"2026-06-17T06:56:44.563000Z","status":"Deferred","cvss":{"version":"3.0","score":5.3,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"security@huntr.dev","primary":false},"auth":false,"cwes":["CWE-497"],"cpes":[],"cpes_truncated":false,"vendors":["langchain-ai"],"products":["langchain-ai/langchain-ai-langchain"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.00567,"percentile":0.40852,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5chr-fjjv-38qv","ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":[{"introduced":"0.1.17","fixed":"0.1.53"}],"versions":["0.1.17","0.1.18","0.1.19","0.1.20","0.1.21","0.1.22","0.1.23","0.1.24","0.1.25","0.1.26","0.1.27","0.1.28","0.1.29","0.1.30","0.1.31","0.1.32","0.1.33","0.1.33rc1","0.1.34","0.1.35","0.1.36","0.1.37","0.1.38","0.1.39","0.1.40","0.1.41","0.1.42","0.1.42rc1","0.1.43","0.1.44","0.1.45","0.1.46","0.1.47","0.1.47rc1","0.1.48","0.1.49","0.1.50","0.1.51","0.1.52"],"versions_truncated":false},{"advisory":"GHSA-5chr-fjjv-38qv","ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":[{"introduced":"0.2.0","fixed":"0.2.43"}],"versions":["0.2.0","0.2.1","0.2.10","0.2.11","0.2.12","0.2.13","0.2.15","0.2.16","0.2.17","0.2.18","0.2.19","0.2.2","0.2.20","0.2.21","0.2.22","0.2.23","0.2.24","0.2.25","0.2.26","0.2.27","0.2.28","0.2.29","0.2.29rc1","0.2.2rc1","0.2.3","0.2.30","0.2.31","0.2.32","0.2.33","0.2.34","0.2.35","0.2.36","0.2.37","0.2.38","0.2.39","0.2.4","0.2.40","0.2.41","0.2.42","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9"],"versions_truncated":false},{"advisory":"GHSA-5chr-fjjv-38qv","ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":[{"introduced":"0.3.0","fixed":"0.3.15"}],"versions":["0.3.0","0.3.1","0.3.10","0.3.11","0.3.12","0.3.13","0.3.14","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.3.7","0.3.8","0.3.9"],"versions_truncated":false},{"advisory":"PYSEC-2026-1517","ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":[{"introduced":"0.1.17","fixed":"0.1.53"},{"introduced":"0.2.0","fixed":"0.2.43"},{"introduced":"0.3.0","fixed":"0.3.15"}],"versions":["0.1.17","0.1.18","0.1.19","0.1.20","0.1.21","0.1.22","0.1.23","0.1.24","0.1.25","0.1.26","0.1.27","0.1.28","0.1.29","0.1.30","0.1.31","0.1.32","0.1.33","0.1.33rc1","0.1.34","0.1.35","0.1.36","0.1.37","0.1.38","0.1.39","0.1.40","0.1.41","0.1.42","0.1.42rc1","0.1.43","0.1.44","0.1.45","0.1.46","0.1.47","0.1.47rc1","0.1.48","0.1.49","0.1.50","0.1.51","0.1.52","0.2.0","0.2.1","0.2.10","0.2.11","0.2.12","0.2.13","0.2.15","0.2.16","0.2.17","0.2.18","0.2.19","0.2.2","0.2.20","0.2.21","0.2.22","0.2.23","0.2.24","0.2.25","0.2.26","0.2.27","0.2.28","0.2.29","0.2.29rc1","0.2.2rc1","0.2.3","0.2.30","0.2.31","0.2.32","0.2.33","0.2.34","0.2.35","0.2.36","0.2.37","0.2.38","0.2.39","0.2.4","0.2.40","0.2.41","0.2.42","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.3.0","0.3.1","0.3.10","0.3.11","0.3.12","0.3.13","0.3.14","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.3.7","0.3.8","0.3.9"],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2024-10940/","html_en":"/en/cve/CVE-2024-10940/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-10940","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-10940"},"untrusted":{"vendor_name":"langchain-ai","product_name":"langchain-ai/langchain","desc_en":"A vulnerability in langchain-core versions >=0.1.17,<0.1.53, >=0.2.0,<0.2.43, and >=0.3.0,<0.3.15 allows unauthorized users to read arbitrary files from the host file system. The issue arises from the ability to create langchain_core.prompts.ImagePromptTemplate's (and by extension langchain_core.prompts.ChatPromptTemplate's) with input variables that can read any user-specified path from the server file system. If the outputs of these prompt templates are exposed to the user, either directly or through downstream model outputs, it can lead to the exposure of sensitive information.","affected":[{"untrusted_vendor":"langchain-ai","untrusted_product":"langchain-ai/langchain","versions":[]}],"references":[{"url":"https://github.com/langchain-ai/langchain/commit/c1e742347f9701aadba8920e4d1f79a636e50b68","tags":[]},{"url":"https://huntr.com/bounties/be1ee1cb-2147-4ff4-a57b-b6045271cf27","tags":[]}]}}