CVE-2023-36281

An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt

Critical · published August 22, 2023

CVSS v3.1
9.8
EPSS
3%
Percentile
88.9
In the wild
Unconfirmed
What it is

🚨 A JSON file is all it takes for a crafty attacker to run arbitrary code in langchain v0.0.171! 🔥 Think of it like a sneaky chef who swaps out the recipe card without anyone noticing — the kitchen ends up cooking something completely different, potentially hazardous! This vulnerability could allow an attacker to infiltrate systems and execute any command they desire, leading to devastating data breaches, unauthorized access, or even full system takeover. Just imagine the chaos if a rogue element could manipulate your applications without you ever suspecting a thing!

Put simply

Think of it like a sneaky chef who swaps out the recipe card without anyone noticing — the kitchen ends up cooking something completely different, potentially hazardous! In langchain v0.0.171, an issue with loading prompts via JSON files allows remote attackers to compromise the system by executing arbitrary code through improper handling of __subclasses__ or templates.

What to do

This vulnerability could allow an attacker to infiltrate systems and execute any command they desire, leading to devastating data breaches, unauthorized access, or even full system takeover. Just imagine the chaos if a rogue element could manipulate your applications without you ever suspecting a thing! Immediate action is required: upgrade langchain to version 0.0.172 or later to patch this vulnerability. Additionally, review your JSON handling procedures to ensure proper validations are in place. Don't delay on this one! You've got this! Follow these steps to secure your systems and maintain your superhero status! 🦸

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03440 · 88.9th percentile
Published
2023-08-22T00:00Z
EPSS history
Timeline
  • 22 AUG 00:00Z
    An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt
    cvelistv5