{"cve":"CVE-2024-8309","nvd":{"published":"2024-10-29T13:15:10.950","modified":"2026-06-17T08:22:20.043","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-74","CWE-89"],"references":["https://github.com/langchain-ai/langchain/commit/c2a3021bb0c5f54649d380b42a0684ca5778c255","https://huntr.com/bounties/8f4ad910-7fdc-4089-8f0a-b5df5f32e7c5"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:56:33.105311382+00:00"},"epss":{"cve":"CVE-2024-8309","score":0.13738,"percentile":0.96509,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-45pg-36p6-83v9","url":"https://osv.dev/vulnerability/GHSA-45pg-36p6-83v9","summary":"Langchain SQL Injection vulnerability","modified":"2026-07-07T17:57:12.591755527Z","packages":[{"ecosystem":"PyPI","name":"langchain-community","purl":"pkg:pypi/langchain-community","ranges":[">=0.2.0 <0.2.19"],"fixed":["0.2.19"]},{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.2.0"],"fixed":["0.2.0"]}]},{"id":"PYSEC-2026-1507","url":"https://osv.dev/vulnerability/PYSEC-2026-1507","summary":"Langchain SQL Injection vulnerability","modified":"2026-07-07T17:57:12.591755527Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.2.0"],"fixed":["0.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}