CVE-2023-36281

CRITICAL

langchain < 0.0.312 - Remote Code Execution via load_prompt JSON File

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2023-36281. PoCs published by tagomaru.

AI-analyzed exploit summary This PoC exploits CVE-2023-36281 by dynamically locating the index of subprocess.Popen in Python's subclass hierarchy to achieve arbitrary command execution. It includes a helper script to determine the correct index for the target environment.

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

This PoC exploits CVE-2023-36281 by dynamically locating the index of subprocess.Popen in Python's subclass hierarchy to achieve arbitrary command execution. It includes a helper script to determine the correct index for the target environment.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: LangChain (specific version not specified)
No auth needed
Prerequisites: Python environment with LangChain installed · Ability to execute Python code in the target environment
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (3)

Core 3

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

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

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