CVE-2023-34541

Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt

Critical · published June 20, 2023

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

🚨 A sneaky flaw in Langchain 0.0.171 lets anyone execute arbitrary code just by loading a prompt—like letting a stranger into your house to rearrange your furniture! 🔥 Imagine a cafe where anyone can walk in and start changing the menu items without any checks. That’s what this vulnerability allows—attackers can serve up their own code instead of your carefully crafted prompts! If exploited, this vulnerability could allow a malicious user to run any code they want on your server, leading to catastrophic data leaks, loss of control, or worse! It's like handing over the keys to your entire operation—absolutely devastating!

Put simply

Imagine a cafe where anyone can walk in and start changing the menu items without any checks. That’s what this vulnerability allows—attackers can serve up their own code instead of your carefully crafted prompts! This vulnerability arises from inadequate input validation in the `load_prompt` function, allowing attackers to inject and execute arbitrary code whenever prompts are processed.

What to do

If exploited, this vulnerability could allow a malicious user to run any code they want on your server, leading to catastrophic data leaks, loss of control, or worse! It's like handing over the keys to your entire operation—absolutely devastating! Patch immediately to version 0.0.172 or later to close this loophole. Review your code for secure handling of user inputs, and ensure that permissions are properly enforced. Don't let anyone else stir the pot! You've got this! Follow the steps, and you'll be a security hero in no time! 🛡️

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.00943 · 60.6th percentile
Published
2023-06-20T00:00Z
EPSS history
Timeline
  • 20 JUN 00:00Z
    Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt
    cvelistv5