{"id":"CVE-2023-38860","published":"2023-08-15T00:00:00Z","modified":"2024-10-09T13:16:52Z","title":"An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01405,"percentile":0.73255,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/hwchase17/langchain/issues/7641","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":14.65}]},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-10-09T13:16:43.332308Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langchain","vulnerableRanges":["<0.0.247"],"patched":["0.0.247"],"from":["GHSA-fj32-q626-pjjc","PYSEC-2023-145"],"provenance":"source"}],"summary":{"text":"The flaw lives in LangChain v0.0.231, where the prompt parameter is mishandled in a way that allows code execution. A remote attacker can execute arbitrary code by supplying crafted input through that prompt parameter.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:34Z"},"euvd":{"id":"EUVD-2023-0113","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langchain-ai-langchain-cve-2023-34541","children":[{"from":"CVE-2023-38860","to":"CVE-2024-38459","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/experimental/langchain_experimental/pal_chain/base.py"],"commits":["https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","https://github.com/langchain-ai/langchain/commit/d353d668e4b0514122a443cef91de7f76fea4245","https://github.com/langchain-ai/langchain/commit/ce0b0f22a175139df8f41cdcfb4d2af411112009"],"basis":"shared function","functions":["PALChain"]}]},{"from":"CVE-2023-38860","to":"CVE-2025-2828","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/langchain/langchain/agents/load_tools.py"],"commits":["https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","https://github.com/langchain-ai/langchain/commit/d353d668e4b0514122a443cef91de7f76fea4245","https://github.com/langchain-ai/langchain/commit/e188d4ecb085d4561a0be3c583d26aa9c2c3283f"],"basis":"shared function","functions":["_get_sleep"]}]}]}}