Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2023-36281 EUVD-2023-0116GHSA-7gfq-f96f-g85jPYSEC-2023-151

langchain vulnerable to arbitrary code execution

Published Aug 22, 2023 · Updated Oct 15, 2024 · Assigned by mitre

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.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI langchain < 0.0.312 0.0.312 GHSA-7gfq-f96f-g85j
PyPI langchain < 0.0.171 0.0.171 PYSEC-2023-151

References