{"id":63,"date":"2026-10-29T06:36:11","date_gmt":"2026-10-29T06:36:11","guid":{"rendered":"https:\/\/bugskan.com\/?p=63"},"modified":"2026-10-29T06:36:12","modified_gmt":"2026-10-29T06:36:12","slug":"historical-advisory-langchain-sqldatabasechain-could-expose-database-information","status":"publish","type":"post","link":"https:\/\/bugskan.com\/index.php\/2026\/10\/29\/historical-advisory-langchain-sqldatabasechain-could-expose-database-information\/","title":{"rendered":"Historical advisory: LangChain SQLDatabaseChain could expose database information"},"content":{"rendered":"<p>OSV\u2019s July 2023 advisory describes SQL injection in LangChain\u2019s SQLDatabaseChain component that could allow a remote attacker to obtain sensitive information. It records 0.0.247 as the fixed package version.<\/p>\n<p>The lasting design issue is the authority given to generated queries. An application can accept a natural-language question while its database account has access to much more information than the user should receive.<\/p>\n<p>When reviewing an older deployment, check both the affected package and database permissions. As a defensive design measure, limit database access to the records and operations the application actually needs. That recommendation complements patching; it does not establish that a particular deployment was exploited.<\/p>\n<p><a href=\"https:\/\/osv.dev\/vulnerability\/GHSA-7q94-qpjr-xpgm\">Read the original source<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE-2023-36189 concerns SQL injection through SQLDatabaseChain. The model\u2019s output should not become unrestricted database authority.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bugskan_incident_id":"inc_5e70d950fc5908","bugskan_event_type":"vulnerability","bugskan_response":"REVIEW","bugskan_technical_severity":"","bugskan_technical_severity_source":"","bugskan_evidence_quality":"high","bugskan_affected_scope":"LangChain SQLDatabaseChain","bugskan_recommended_next_step":"Review CVE-2023-36189, upgrade affected packages, and restrict database permissions.","bugskan_who_should_check":"Maintainers of legacy applications using LangChain SQLDatabaseChain.","bugskan_material_updated_at":"2024-10-21T21:01:20Z","bugskan_reviewer_name":"","bugskan_reviewed_at":"","bugskan_legacy_state":"mapped","bugskan_featured":false,"bugskan_sample":false,"footnotes":""},"categories":[1],"tags":[],"bugskan_format":[2],"bugskan_technology":[20],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-uncategorized","bugskan_format-security-brief","bugskan_technology-langchain"],"_links":{"self":[{"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":1,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":300,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/posts\/63\/revisions\/300"}],"wp:attachment":[{"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/tags?post=63"},{"taxonomy":"bugskan_format","embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/bugskan_format?post=63"},{"taxonomy":"bugskan_technology","embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/bugskan_technology?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}