Search
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
98 items
CVE-2025-2828 is a Server-Side Request Forgery (SSRF) flaw in the RequestsToolkit component of the langchain-community package (langchain_community.agent_toolkits.openapi.toolkit.RequestsToolkit) in langchain-ai/langchain version 0.0.27. The toolkit does not restrict requests to local addresses, so an attacker could port scan, reach local services, retrieve cloud instance metadata (such as Azure and AWS), and interact with servers on the local network.
Fix: Fixed in version 0.0.28.
NVD/CVE DatabaseMultiple vector store integrations in run-llama/llama_index version v0.12.21 contain SQL injection vulnerabilities. An attacker can read and write data using SQL, which may expose the data of other users depending on how the llama-index library is used in a web application.
LLama-Index CLI version v0.12.20 contains an OS command injection flaw. The `--files` argument is passed directly into `os.system`, so an attacker who controls its content can run arbitrary shell commands, locally through the CLI arguments or remotely when a web application passes a user-controlled filename to the CLI. The result is arbitrary code execution on the affected system.
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 lets unauthorized users read arbitrary files from the host file system. The flaw lies in langchain_core.prompts.ImagePromptTemplate, and by extension ChatPromptTemplate, which can be created with input variables that read any user-specified server path. If the prompt template outputs are exposed to the user, directly or through downstream model outputs, sensitive information can leak.
A SQL injection flaw in the run_sql_query function of the database_agent within FinanceChatLlamaPack, in the run-llama/llama_index repository up to v0.12.3, lets an attacker run arbitrary SQL queries. Through PostgreSQL's large object functionality, this can lead to remote code execution (RCE).
Fix: Fixed in version 0.3.0.
NVD/CVE DatabaseCVE-2024-8309 affects the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5. Attackers can use prompt injection to trigger SQL injection, allowing them to create, update, or delete nodes and relationships without authorization, extract sensitive data, and disrupt service. The flaw can also reach data across tenants in multi-tenant environments and compromise database integrity.
CVE-2024-7774 is a path traversal flaw in the getFullPath method of langchain-ai/langchainjs version 0.2.5. The setFileContent, getParsedFile, and mdelete methods do not sanitize user input, letting attackers write files anywhere on the filesystem, overwrite existing text files, read .txt files, and delete files.
Fix: The source links a patch: commit a0fad77d6b569e5872bd4a9d33be0c0785e538a9 in the langchain-ai/langchainjs repository on GitHub. It does not state a fixed version or a configuration workaround.
CVE-2024-7042 affects the GraphCypherQAChain class in langchain-ai/langchainjs, in version 0.2.5 and all versions containing this class. Prompt injection in the class leads to SQL injection, allowing an attacker to create, update, or delete nodes and relationships without authorization, extract sensitive data, and cause denial of service by deleting all data. The flaw also enables access across tenants in multi-tenant environments and damages database integrity.
CVE-2024-46946 affects langchain_experimental (LangChain Experimental) versions 0.1.17 through 0.3.0. The flaw lies in LLMSymbolicMathChain, which passes input to sympy.sympify, which uses eval, allowing attackers to execute arbitrary code. The chain was introduced on 2023-10-05, and NVD has not yet provided an assessment.
Fix: Release notes for langchain-experimental==0.3.0 are referenced in the source, but the source does not state the fix or a workaround in its text.
CVE-2024-5998 affects the FAISS.deserialize_from_bytes function in langchain-ai/langchain, which allows pickle deserialization of untrusted data. The issue affects the latest version of the product, and it can lead to the execution of arbitrary commands via the os.system function. The weakness is classified as CWE-502, Deserialization of Untrusted Data.
Fix: The source links a patch in the langchain-ai/langchain commit 604dfe2d99246b0c09f047c604f0c63eafba31e7, but it does not state a fixed version or a configuration change.
Versions of the langchain-experimental package from 0.0.15 before 0.0.21 contain CVE-2024-21513, an arbitrary code execution flaw. When retrieving values from the database, the package calls 'eval' on all values. An attacker who controls the input prompt can run arbitrary Python code on servers configured with VectorSQLDatabaseChain.
CVE-2024-38459 affects langchain_experimental (LangChain Experimental) before 0.0.61. The package provides Python REPL access without an opt-in step, and the issue exists because of an incomplete fix for CVE-2024-27444. The weakness is classified as CWE-276, Incorrect Default Permissions.
Fix: Patch: https://github.com/langchain-ai/langchain/compare/langchain-experimental==0.0.60...langchain-experimental==0.0.61 (fixed in langchain_experimental 0.0.61, per the linked patch comparison).
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.