CVE-2023-39631

An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library

published September 1, 2023

CVSS
—
EPSS
2%
Percentile
75.6
In the wild
Unconfirmed
What it is

⚠️ A sneaky flaw in Langchain v0.0.245 lets remote attackers run arbitrary code through the evaluate function—like a chef adding a surprise ingredient without anyone noticing! Think of it like a restaurant where the chef can whip up dishes without the waitstaff checking the recipe. If the chef is mischievous, they could serve something that doesn't belong or is downright dangerous! If exploited, an attacker can execute their own code on your system, potentially leading to stolen data, system disruption, or worse. It’s a recipe for disaster that could compromise your entire setup!

Put simply

Think of it like a restaurant where the chef can whip up dishes without the waitstaff checking the recipe. If the chef is mischievous, they could serve something that doesn't belong or is downright dangerous! This vulnerability arises from insufficient validation in the evaluate function of the numexpr library used by Langchain, allowing attackers to craft malicious input and execute arbitrary code on the server.

What to do

If exploited, an attacker can execute their own code on your system, potentially leading to stolen data, system disruption, or worse. It’s a recipe for disaster that could compromise your entire setup! To mitigate this risk, upgrade to the latest version of Langchain as soon as possible. Additionally, review and sanitize any inputs to the evaluate function to prevent unauthorized code execution. Don't skip the security checks! You've got this! Follow these steps, and you’ll keep your system safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01600 · 75.6th percentile
Published
2023-09-01T00:00Z
EPSS history
Timeline
  • 01 SEP 00:00Z
    An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library
    cvelistv5