CVE-2023-36281

CRITICAL

langchain <0.0.171 - RCE

Title source: llm

Description

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.

Exploits (1)

nomisec WORKING POC 2 stars
by tagomaru · poc
https://github.com/tagomaru/CVE-2023-36281

Scores

CVSS v3 9.8
EPSS 0.6224
EPSS Percentile 98.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-94
Status published
Products (2)
langchain/langchain 0.0.171
pypi/langchain 0 - 0.0.312PyPI
Published Aug 22, 2023
Tracked Since Feb 18, 2026