MEDIUM 5.2 PyPI

LangChain pickle deserialization of untrusted data

GHSA-f2jm-rw3h-6phg · CVE-2024-5998

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

A vulnerability in the FAISS.deserialize_from_bytes function of langchain-ai/langchain allows for pickle deserialization of untrusted data. This can lead to the execution of arbitrary commands via the os.system function. The issue affects versions prior to 0.2.4.

Ready to move

Start Securing

Free, no credit card | First findings in minutes