Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GHSA-45pg-36p6-83v9] Langchain-Community SQL Injection vulnerability #4984

Conversation

eyurtsev
Copy link

@eyurtsev eyurtsev commented Nov 4, 2024

Updates

  • Affected products
  • CVSS v3

Comments
langchain is structured as a mono-repo. The vulnurable code has existed only in langchain-community since version 0.2.0 of langchain.

@github-actions github-actions bot changed the base branch from main to eyurtsev/advisory-improvement-4984 November 4, 2024 19:37
@shelbyc
Copy link
Contributor

shelbyc commented Nov 4, 2024

@eyurtsev Thanks for the clarification. Just to double check, the affected products and their affected versions should be:

  • langchain-community with affected version range < 0.3.0 and fixed version 0.3.0
  • langchain with affected version range >= 0.2.0, < 0.3.0 and fixed version 0.3.0
    Are these correct?

@eyurtsev
Copy link
Author

eyurtsev commented Nov 5, 2024

Hi @shelbyc,

  1. The vulnerable code was moved out of the langchain package at 0.2.0. (so langchain is patched as of 0.2.0)
  2. langchain-community got the code in 0.2.0 and was patched at version 0.3.0.

So we'd want the following information:

  • langchain with affected version range >= 0.0.0, < 0.2.0, patched as of 0.2.0
  • langchain-community with affected version range >=0.2.0, < 0.3.0, patched as of 0.3.0

@advisory-database advisory-database bot merged commit 33e702e into eyurtsev/advisory-improvement-4984 Nov 5, 2024
2 checks passed
@advisory-database
Copy link
Contributor

Hi @eyurtsev! Thank you so much for contributing to the GitHub Advisory Database. This database is free, open, and accessible to all, and it's people like you who make it great. Thanks for choosing to help others. We hope you send in more contributions in the future!

@advisory-database advisory-database bot deleted the eyurtsev-GHSA-45pg-36p6-83v9 branch November 5, 2024 16:58
@shelbyc
Copy link
Contributor

shelbyc commented Nov 5, 2024

@eyurtsev Thanks for the clarification! I've updated langchain-community to affected version range >= 0.2.0, < 0.3.0 and patched version 0.3.0 and added langchain with affected version range < 0.2.0 and patched version 0.2.0. If I made a mistake anywhere in the update or you see any other issues that need to be addressed, as always, feel free to reach out. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants