Skip to content
CriticalVulnerabilityLLM-specific

CVE-2024-7042: langchainjs GraphCypherQAChain prompt injection leading to SQL injection

Identifier
CVE-2024-7042
Published
Record updated
View JSON
Affected
  • @langchain/community < 0.3.3
Fixed in
0.3.3
  • released September 25, 2024, 34 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2024-7042 affects the GraphCypherQAChain class in langchain-ai/langchainjs, in version 0.2.5 and all versions containing this class. Prompt injection in the class leads to SQL injection, allowing an attacker to create, update, or delete nodes and relationships without authorization, extract sensitive data, and cause denial of service by deleting all data. The flaw also enables access across tenants in multi-tenant environments and damages database integrity.

Mitigation

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