CVE-2024-5998
Python vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2024-5998) was identified in the FAISS.deserializefrombytes function of langchain-ai/langchain. The vulnerability allows for pickle deserialization of untrusted data, which can lead to the execution of arbitrary commands via the os.system function. The issue affects the latest version of the product (NVD, CVE).

Technical details

The vulnerability is classified as CWE-502 (Deserialization of Untrusted Data). According to the CVSS 3.0 scoring system, it has received a base score of 5.2 (MEDIUM) with the following vector: CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L. This indicates that the vulnerability requires physical access, low attack complexity, low privileges, and user interaction, while potentially resulting in high confidentiality impact and low integrity and availability impacts (NVD).

Impact

The vulnerability can lead to the execution of arbitrary commands through the os.system function when exploited. This poses a significant security risk as it could allow attackers to execute unauthorized commands on the affected system (NVD).

Mitigation and workarounds

A fix has been implemented in the langchain-ai/langchain repository through a commit that addresses the vulnerability (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-9mv7-3c64-mmqwHIGH8.7
  • PythonPython
  • xml2rfc
NoYesSep 10, 2025
GHSA-f7qq-56ww-84crHIGH8.3
  • PythonPython
  • picklescan
NoYesSep 10, 2025
GHSA-jgw4-cr84-mqxgHIGH7.8
  • PythonPython
  • picklescan
NoYesSep 10, 2025
GHSA-mjqp-26hc-grxgHIGH7.5
  • PythonPython
  • picklescan
NoYesSep 10, 2025
CVE-2025-59035MEDIUM4.6
  • PythonPython
  • indico
NoYesSep 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management