p PatchFirst

PatchFirst · Свежие уязвимости

Уязвимости langchain

За последние 30 дней в langchain опубликовано уязвимостей: 0; в каталоге KEV: 0.

Фильтры уязвимостей
Сбросить фильтры

Уязвимостей: 23

  1. CVE-2026-55443

    Средний · CVSS 5.1EPSS 0,21%Есть исправление

    LangChain: Path traversal and sandbox escape in LangChain file-search middleware and loaders

    LangChain is a framework for building agents and LLM-powered applications. Prior to 1.3.9, several LangChain components that resolve filesystem paths or expand search patterns do not consistently confine the resolved path to the intended root directory. Affected behaviors include: a file-search agent middleware that validates a starting directory but not the search pattern or the resolved target of matched files, so glob patterns and symlinks can reach files outside the configured root; prompt- and chain/agent-configuration loaders that accept path fields and resolve them without confining the result to a trusted base or rejecting symlink tar

    • Обновитесь до 1.3.9
  2. CVE-2026-45134

    Высокий · CVSS 7.1EPSS 0,2%Есть исправление

    LangSmith Client SDK: Public prompt pull deserializes untrusted manifests without trust boundary warning

    LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to LangSmith SDK Python 0.8.0 and JS/TS 0.6.0, the LangSmith SDK's prompt pull methods (pull_prompt / pull_prompt_commit in Python, pullPrompt / pullPromptCommit in JS/TS) fetch and deserialize prompt manifests from the LangSmith Hub. These manifests may contain serialized LangChain objects and model configuration that affect runtime behavior. When pulling a public prompt by owner/name identifier, the manifest content is controlled by an external party, but prior versions of the SDK did not distinguish this from pulling a prompt within the caller's own orga

    • Обновитесь до 0.3.30
    Опубликовано Обновлено
  3. CVE-2024-8309

    Средний · CVSS 4.9EPSS 13,74%Есть исправление

    SQL Injection in langchain-ai/langchain

    A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection through prompt injection. This vulnerability can lead to unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.

    • Обновитесь до 0.2.0
    Опубликовано Обновлено
  4. CVE-2024-5998

    Средний · CVSS 5.2EPSS 0,36%Есть исправление

    Deserialization of Untrusted Data in langchain-ai/langchain

    A vulnerability in the FAISS.deserialize_from_bytes function of langchain-ai/langchain allows for pickle deserialization of untrusted data. This can lead to the execution of arbitrary commands via the os.system function. The issue affects the latest version of the product.

    • Обновитесь до 0.2.9
    Опубликовано Обновлено
  5. CVE-2024-2965

    Средний · CVSS 4.2EPSS 0,3%Есть исправление

    Denial-of-Service in LangChain SitemapLoader in langchain-ai/langchain

    A Denial-of-Service (DoS) vulnerability exists in the `SitemapLoader` class of the `langchain-ai/langchain` repository, affecting all versions. The `parse_sitemap` method, responsible for parsing sitemaps and extracting URLs, lacks a mechanism to prevent infinite recursion when a sitemap URL refers to the current sitemap itself. This oversight allows for the possibility of an infinite loop, leading to a crash by exceeding the maximum recursion depth in Python. This vulnerability can be exploited to occupy server socket/port resources and crash the Python process, impacting the availability of services relying on this functionality.

    • Обновитесь до 0.2.5
  6. CVE-2024-3571

    Средний · CVSS 6.5EPSS 1,87%Есть исправление

    Path Traversal in langchain-ai/langchain

    langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality. An attacker can leverage this vulnerability to read or write files anywhere on the filesystem, potentially leading to information disclosure or remote code execution. The issue lies in the handling of file paths in the mset and mget methods, where user-supplied input is not adequately sanitized, allowing directory traversal sequences to reach unintended directories.

    • Обновитесь до 0.0.353
    Опубликовано Обновлено
  7. CVE-2024-28088

    Высокий · CVSS 8.1EPSS 1,74%Есть исправление

    CVE-2024-28088

    LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution. (A patch is available as of release 0.1.29 of langchain-core.)

    • Обновитесь до 0.0.339
    • Обновитесь до 0.1.11
    Опубликовано Обновлено
  8. CVE-2024-0243

    Низкий · CVSS 3.7EPSS 0,52%Есть исправление

    Server-side Request Forgery In Recursive URL Loader

    With the following crawler configuration: ```python from bs4 import BeautifulSoup as Soup url = "https://example.com" loader = RecursiveUrlLoader( url=url, max_depth=2, extractor=lambda x: Soup(x, "html.parser").text ) docs = loader.load() ``` An attacker in control of the contents of `https://example.com` could place a malicious HTML file in there with links like "https://example.completely.different/my_file.html" and the crawler would proceed to download that file as well even though `prevent_outside=True`. https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/docu

    • Обновитесь до 0.1.0
    Опубликовано Обновлено
  9. CVE-2023-32786

    Высокий · CVSS 7.5EPSS 0,71%Есть исправление

    CVE-2023-32786

    In Langchain through 0.0.155, prompt injection allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF and potentially injecting content into downstream tasks.

    • Обновитесь до 0.0.329
    Опубликовано Обновлено
  10. CVE-2023-46229

    Высокий · CVSS 8.8EPSS 47,62%Есть исправление

    CVE-2023-46229

    LangChain before 0.0.317 allows SSRF via document_loaders/recursive_url_loader.py because crawling can proceed from an external server to an internal server.

    • Обновитесь до 0.0.317
    Опубликовано Обновлено
  11. CVE-2023-39631

    Критический · CVSS 9.8EPSS 1,6%Есть исправление

    CVE-2023-39631

    An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.

    • Обновитесь до 0.0.308
    Опубликовано Обновлено
  12. CVE-2023-36281

    Критический · CVSS 9.8EPSS 3,44%Есть исправление

    CVE-2023-36281

    An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This is related to __subclasses__ or a template.

    • Обновитесь до 0.0.171
    • Обновитесь до 0.0.312
    Опубликовано Обновлено
  13. CVE-2023-39659

    Критический · CVSS 9.8EPSS 1,53%Есть исправление

    CVE-2023-39659

    An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.

    • Обновитесь до 0.0.233
    • Обновитесь до 0.0.325
    Опубликовано Обновлено
  14. CVE-2023-38896

    Критический · CVSS 9.8EPSS 1,84%Есть исправление

    CVE-2023-38896

    An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.

    • Обновитесь до 0.0.195
    • Обновитесь до 0.0.236
    Опубликовано Обновлено
  15. CVE-2023-36095

    Критический · CVSS 9.8EPSS 1,17%Есть исправление

    CVE-2023-36095

    An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.

    • Обновитесь до 0.0.236

Проверьте свой сервер

Сопоставьте установленный стек и версии со свежими базами уязвимостей.

Проверьте свой сервер →