CVE-2024-8309: SQL Injection in langchain-ai/langchain

Published Oct 29, 2024
·
Updated

A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection through prompt injection. This vulnerability can lead to unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.

Affected Software

3 affected componentsFixes available
pip/langchain-community>=0.2.0<0.2.19
0.2.19
pip/langchain<0.2.0
0.2.0
Langchain Langchain=0.2.5

Event History

Oct 29, 2024
CVE Published
via MITRE·12:50 PM
Data Sourced
via MITRE·12:50 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-8309?

CVE-2024-8309 is rated as a high-severity vulnerability due to the potential for unauthorized data manipulation and denial of service.

2

How do I fix CVE-2024-8309?

To fix CVE-2024-8309, update your langchain package to version 0.2.19 or later.

3

What happens if I am affected by CVE-2024-8309?

If you are affected by CVE-2024-8309, your application may be vulnerable to SQL injection attacks leading to serious data integrity and security issues.

4

Which versions of langchain are affected by CVE-2024-8309?

CVE-2024-8309 affects langchain version 0.2.5 and older versions.

5

Is CVE-2024-8309 exploitable in production environments?

Yes, CVE-2024-8309 is exploitable in production environments, especially where unvalidated user inputs are processed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203