LiveActive security incident?Get immediate response
CVE Record

CVE-2026-34070: LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions

LangChain is a framework for building agents and LLM-powered applications. Prior to version 1.2.22, multiple functions in langchain_core.prompts.loading read files from paths embedded in deserialized config dicts without validating against directory traversal or absolute path injection. When an application passes user-influenced prompt configurations to load_prompt() or load_prompt_from_config(), an attacker can read arbitrary files on the host filesystem, constrained only by file-extension checks (.txt for templates, .json/.yaml for examples). This issue has been patched in version 1.2.22.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Applications using vulnerable LangChain Core prompt loaders may let an unauthenticated attacker read sensitive host files when prompt configurations are influenced by users. The flaw threatens confidentiality, including secrets and application data, but the cited sources do not indicate file modification or service disruption. Version 1.2.22 contains the patch.

Executive priority

Prioritize remediation for internet-facing or multi-tenant applications that accept externally influenced prompt configurations. Upgrade promptly and assess possible secret exposure. Lower the immediate priority only when teams verify that affected functions are unused or all configurations are trusted and tightly constrained.

Technical view

Before LangChain Core 1.2.22, legacy load_prompt() and load_prompt_from_config() paths in langchain_core.prompts.loading insufficiently validate filenames from deserialized configuration dictionaries. Directory traversal or absolute paths can expose arbitrary readable host files. Extension checks limit template reads to .txt and example files to .json or .yaml; CVSS 3.1 is 7.5 (CWE-22).

Likely exposure

Exposure requires LangChain Core earlier than 1.2.22 and an application path that passes user-influenced prompt configurations into the affected legacy loaders. Risk is highest for network-facing services where untrusted users can control embedded file paths. Installation alone does not establish exploitability.

Exploitation context

The CVSS vector describes network-reachable, low-complexity exploitation requiring neither privileges nor user interaction, with high confidentiality impact. However, the bundle marks this CVE as absent from KEV, and no supplied source establishes active exploitation. Treat exploitation status as unconfirmed.

Researcher notes

The vulnerability is a path-validation failure during prompt configuration deserialization. Practical impact depends on application data flow and runtime file permissions. Extension restrictions narrow readable targets but do not eliminate sensitive-file exposure. The supplied evidence supports confidentiality loss only; it does not establish integrity or availability impact, public proof-of-concept availability, or observed attacks.

Mitigation direction

  • Upgrade LangChain Core to version 1.2.22 or later.
  • Identify and restrict user influence over configurations passed to the affected legacy prompt loaders.
  • Replace legacy loading paths where feasible and accept only explicitly approved files.
  • Reduce the application account's filesystem access to necessary files only.
  • Review relevant Red Hat advisories when using affected downstream packages.

Validation and detection

  • Inventory deployed LangChain Core versions and flag releases earlier than 1.2.22.
  • Trace calls to load_prompt() and load_prompt_from_config() from untrusted inputs.
  • Confirm prompt configuration paths are constrained to approved directories and files.
  • Verify the runtime identity cannot read unnecessary secrets or sensitive data.
  • After upgrading, confirm version 1.2.22 or later is present in deployed artifacts.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-34070 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
5Timeline events
2ADP providers
10Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: partial

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N3.93.6GitHub_M
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N3.93.6redhat-SADP

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2026-34070Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPlangchain: path traversal in legacy load_prompt functions in langchain-core
other:Red Hat severity ratingcvssV3_1
  • 2026-03-31T03:02:19.523Z: Reported to Red Hat.
  • 2026-03-31T02:01:49.320Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
langchain-ailangchain< 1.2.22Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.