CVE-2023-36281
CRITICALlangchain < 0.0.312 - Remote Code Execution via load_prompt JSON File
Title source: llmExploitation 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)
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.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H