Skip to content
HighVulnerability

CVE-2024-5998: langchain FAISS.deserialize_from_bytes unsafe pickle deserialization

Identifier
CVE-2024-5998
Published
Record updated
View JSON
Affected
  • langchain-community < 0.2.4
Fixed in
0.2.4
  • released June 6, 2024, 102 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

CVE-2024-5998 affects the FAISS.deserialize_from_bytes function in langchain-ai/langchain, which allows pickle deserialization of untrusted data. The issue affects the latest version of the product, and it can lead to the execution of arbitrary commands via the os.system function. The weakness is classified as CWE-502, Deserialization of Untrusted Data.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.