CVE-2023-36095

An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions…

published August 5, 2023

CVSS
—
EPSS
1%
Percentile
67.2
In the wild
Unconfirmed
What it is

⚠️ A sneaky bit of Python can turn your code into a playground for attackers! This vulnerability in Harrison Chase's langchain v0.0.194 allows arbitrary code execution through the PALChain functions. 🔥 Think of it like a restaurant where the chef blindly follows any recipe without checking the ingredients. If a rogue patron slips a dangerous recipe into the mix, the chef might just end up cooking something harmful! An attacker could slip arbitrary code into functions like from_math_prompt and from_colored_object_prompt, potentially leading to data breaches or unauthorized access to sensitive operations. This could spell disaster for any application relying on these functions, allowing attackers to wreak havoc!

Put simply

Think of it like a restaurant where the chef blindly follows any recipe without checking the ingredients. If a rogue patron slips a dangerous recipe into the mix, the chef might just end up cooking something harmful! This vulnerability arises from the use of Python's exec calls within the PALChain. This allows attackers to execute arbitrary code, as the functions don't validate the input before execution, leading to a severe security risk.

What to do

An attacker could slip arbitrary code into functions like from_math_prompt and from_colored_object_prompt, potentially leading to data breaches or unauthorized access to sensitive operations. This could spell disaster for any application relying on these functions, allowing attackers to wreak havoc! To protect your application, upgrade langchain to the latest version as soon as it's available. Review your code for any use of these functions and implement input validation to ensure safety. Don't forget to monitor your application closely for any suspicious activity! You've got this! Stay vigilant, patch that code, and you'll bolster your app's defenses in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01170 · 67.2th percentile
Published
2023-08-05T00:00Z
EPSS history
Timeline
  • 05 AUG 00:00Z
    An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions…
    cvelistv5