Skip to content
HighVulnerability

CVE-2024-21513: langchain-experimental arbitrary code execution when retrieving database values

Identifier
CVE-2024-21513
Published
Record updated
View JSON
Affected
  • langchain-experimental >= 0, < 0.0.21
Fixed in
0.0.21
  • released September 25, 2023, 294 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.9%

Summary

Versions of the langchain-experimental package from 0.0.15 before 0.0.21 contain CVE-2024-21513, an arbitrary code execution flaw. When retrieving values from the database, the package calls 'eval' on all values. An attacker who controls the input prompt can run arbitrary Python code on servers configured with VectorSQLDatabaseChain.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.