All items
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
126 items
CVE-2024-3095 is a Server-Side Request Forgery (SSRF) flaw in the Web Research Retriever component of langchain-ai/langchain version 0.1.5. The component does not restrict requests to remote internet addresses, so it can reach local addresses, enabling port scans, access to local services and, in some cases, cloud instance metadata. Only GET requests are possible, but the flaw can still expose stolen credentials and state-changing calls to internal APIs.
The `SitemapLoader` Document Loader in the `langchain-community` package, in versions below 0.2.5, has a denial of service flaw. The `parse_sitemap` method does not stop infinite recursion when a sitemap URL points back to the current sitemap, so it crashes the Python process by exceeding the maximum recursion depth. An attacker can occupy server socket/port resources, which impacts the availability of services that use this functionality.
CVE-2024-37058 affects the MLflow platform in versions 2.5.0 and newer. Deserialization of untrusted data occurs when a maliciously uploaded Langchain AgentExecutor model is loaded, allowing arbitrary code to run on an end user's system when that model is interacted with. The weakness is classified as CWE-502, and HiddenLayer is cited as the source.
CVE-2024-4181 is a command injection flaw in the RunGptLLM class of the llama_index library, version 0.9.47, which the RunGpt framework from JinaAI uses to connect to LLMs. The class improperly uses the eval function, so a malicious or compromised LLM hosting provider can execute arbitrary commands on the client's machine and gain full control over it.
Fix: Fixed in version 0.10.13.
NVD/CVE Databaselangchain-ai/langchain is vulnerable to path traversal in its LocalFileStore functionality, tracked as CVE-2024-3571. Because user-supplied input is not adequately sanitized in the mset and mget methods, directory traversal sequences can reach unintended directories. An attacker can read or write files anywhere on the filesystem, which could lead to information disclosure or remote code execution.
CVE-2024-1455 affects the langchain-ai/langchain repository and allows a Billion Laughs Attack, a form of XML External Entity (XXE) exploitation. An attacker nests multiple layers of entities in an XML document, causing the XML parser to consume excessive CPU and memory and leading to a denial of service (DoS). The weakness is classified as CWE-776, Improper Restriction of Recursive Entity References in DTDs.
CVE-2024-28088 affects LangChain through 0.1.10. An actor who can control the final part of the path parameter in a load_chain call can use ../ directory traversal to bypass the intended restriction on loading configurations only from the hwchase17/langchain-hub GitHub repository. The source says the outcome can be disclosure of an API key for a large language model online service, or remote code execution.
Fix: A patch is available as of release 0.1.29 of langchain-core.
A critical vulnerability in LangChain langchain_community 0.0.26 affects the load_local function in libs/community/langchain_community/retrievers/tfidf.py, part of the TFIDFRetriever component. Manipulation of this function leads to server-side request forgery, and the attack can be launched remotely. The exploit is public and may be used.
Fix: Upgrade to version 0.0.27, which is able to address this issue. It is recommended to upgrade the affected component.
The langchain RecursiveUrlLoader in libs/community, in langchain_community/document_loaders/recursive_url_loader.py, can be made to fetch URLs outside the start site. An attacker who controls the content at the crawled URL can add links to other hosts, such as https://example.completely.different/my_file.html, and the crawler downloads them even when prevent_outside=True is set.
Fix: Resolved in https://github.com/langchain-ai/langchain/pull/15559
GitHub Advisory DatabaseCVE-2024-23730 affects the OpenAPI and ChatGPT plugin loaders in LlamaHub (aka llama-hub) before 0.0.67. Because safe_load is not used for YAML, attackers can execute arbitrary code. NVD has not yet provided an assessment, and the weakness is listed as NVD-CWE-noinfo.
Fix: Fixed in 0.0.67. The source references the v0.0.67 CHANGELOG, a pull request commit (pull/841), and the v0.0.67 release tag as patch and release notes.
CVE-2023-32786 affects Langchain through 0.0.155. Prompt injection in that version allows an attacker to force the service to retrieve data from an arbitrary URL, which the source describes as providing SSRF and potentially injecting content into downstream tasks. NIST has not yet provided an NVD assessment.
LangChain versions before 0.0.247 are affected by a flaw in the SQL chain. Prompt injection allows an attacker to execute arbitrary code against the SQL service that the chain provides.
CVE-2023-46229 affects LangChain before 0.0.317. The flaw is in document_loaders/recursive_url_loader.py, which allows server-side request forgery because crawling can proceed from an external server to an internal server. The CWE is CWE-918, and NVD has not yet provided an assessment.
Fix: The source cites a patch commit (https://github.com/langchain-ai/langchain/commit/9ecb7240a480720ec9d739b3877a52f76098a2b8) and a pull request (https://github.com/langchain-ai/langchain/pull/11925), both tagged as…
CVE-2023-44467 affects langchain_experimental (aka LangChain Experimental) in LangChain before 0.0.306. An attacker can bypass the CVE-2023-36258 fix and execute arbitrary code via __import__ in Python code, which pal_chain/base.py does not prohibit.
Fix: Reference: https://github.com/langchain-ai/langchain/commit/4c97a10bd0d9385cfee234a63b5bd826a295e483 (patch). Fixed in LangChain 0.0.306 or later.
NVD/CVE DatabaseCVE-2023-39631 affects LangChain-ai Langchain v0.0.245. A remote attacker can execute arbitrary code through the evaluate function in the numexpr library. The weakness is classified as CWE-94, Improper Control of Generation of Code ('Code Injection').
CVE-2023-36281 affects langchain v0.0.171. A remote attacker can execute arbitrary code by supplying a crafted JSON file to load_prompt, related to __subclasses__ or a template. The weakness is classified as CWE-94 (Improper Control of Generation of Code).
Fix: Fixed in v0.0.312, per the release tag referenced in the source (https://github.com/langchain-ai/langchain/releases/tag/v0.0.312).
NVD/CVE DatabaseCVE-2023-39659 affects langchain (langchain-ai) v.0.0.232 and earlier. A remote attacker can execute arbitrary code by sending a crafted script to the PythonAstREPLTool._run component. The source classifies the weakness as CWE-74, Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
CVE-2023-38860 affects LangChain v.0.0.231. The source states that a remote attacker can execute arbitrary code through the prompt parameter. The weakness is classified as CWE-94, Improper Control of Generation of Code ('Code Injection'), and NIST has not yet provided an assessment.
An issue in llama_index v0.7.13 and earlier lets a remote attacker execute arbitrary code through the `exec` parameter in the PandasQueryEngine function. The source describes the flaw and its impact but gives no further detail on exploitation conditions.
CVE-2023-36095 affects langchain v.0.0.194. An attacker can execute arbitrary code through the python exec calls in PALChain, reached via the functions from_math_prompt and from_colored_object_prompt. The weakness is classified as CWE-94, Improper Control of Generation of Code ('Code Injection').