PyPi: Langchain-Community

CVE-2024-5998

Safety vulnerability ID: 73298

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Sep 17, 2024 Updated at Dec 10, 2024
Scan your Python projects for vulnerabilities →

Advisory

A critical security vulnerability affects the FAISS class in the langchain-ai/langchain library. The deserialize_from_bytes method deserializes data using Python's pickle module without proper security checks, potentially allowing attackers to execute arbitrary code, including system commands via os.system. Users must update to the latest version, which introduces an allow_dangerous_deserialization parameter. Users must explicitly set this parameter to True to allow deserialization, acknowledging the risk. Never deserialize data from untrusted sources.

Affected package

langchain-community

Latest version: 0.3.11

Community contributed LangChain integrations.

Affected versions

Fixed versions

Vulnerability changelog

This vulnerability has no description

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application