Skip to content
CriticalVulnerability

CVE-2023-36281: langchain remote code execution through JSON file in load_prompt

Identifier
CVE-2023-36281
Published
Record updated
View JSON
Affected
  • langchain < 0.0.312
Fixed in
0.0.312
  • released October 10, 2023, 49 days after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
3.4%

Summary

CVE-2023-36281 affects langchain v0.0.171. A remote attacker can execute arbitrary code by supplying a crafted JSON file to load_prompt, related to __subclasses__ or a template. The weakness is classified as CWE-94 (Improper Control of Generation of Code).

Mitigation

Fixed in v0.0.312, per the release tag referenced in the source (https://github.com/langchain-ai/langchain/releases/tag/v0.0.312).