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

CVE-2026-34070 lets a malicious user-influenced LangChain prompt configuration make an application read unintended local files. The impact is data exposure, not code execution, but secrets or configuration files could be exposed if the vulnerable loading functions are reachable.

Executive priority

Treat as high priority for AI applications that accept external prompt configuration. The business risk is unauthorized file disclosure from application hosts, especially where secrets or customer data are present.

Technical view

Before version 1.2.22, langchain_core.prompts.loading functions load_prompt() and load_prompt_from_config() accepted paths from deserialized config dictionaries without preventing directory traversal or absolute path injection. Reads are constrained by extension checks for templates and examples, but confidentiality impact is rated high.

Likely exposure

Exposure is likely limited to applications using affected LangChain versions before 1.2.22 and passing user-influenced prompt configurations into load_prompt() or load_prompt_from_config().

Exploitation context

The source bundle does not cite active exploitation, and KEV is false. Abuse requires a reachable application path where attacker-controlled or attacker-influenced prompt configuration is deserialized and loaded.

Researcher notes

Focus review on trust boundaries around prompt configuration deserialization. Extension checks reduce some paths but do not eliminate sensitive file disclosure risk for allowed .txt, .json, .yaml, or .yml-style prompt resources if reachable.

Mitigation direction

  • Upgrade LangChain or langchain-core to version 1.2.22 or later.
  • Stop passing user-influenced prompt configurations to legacy prompt loading functions.
  • Restrict prompt file loading to approved directories and trusted configuration sources.
  • Review Red Hat advisories if consuming LangChain through Red Hat products.
  • Check vendor guidance for any additional downstream fixes or backports.

Validation and detection

  • Inventory deployed LangChain and langchain-core versions across applications.
  • Identify use of load_prompt() and load_prompt_from_config().
  • Trace whether prompt configurations can be influenced by users or external systems.
  • Confirm upgraded packages include the 1.2.22 fix or downstream backport.
  • Review logs for unexpected prompt file-loading failures or unusual configuration inputs.
Prepared
Confidence
high
Sources
6

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
9Source 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.