Security mailing lists by PureSourceCode

CVE-2024-5998

HIGH 7.8CVSS 3.1

LangChain pickle deserialization of untrusted data

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 the latest version of the product.

Published
17 Sep 2024
Last modified
13 Jul 2026
Assigned by
security@huntr.dev
NVD status
Analyzed
Weakness
CWE-502
Also known as
GHSA-f2jm-rw3h-6phgPYSEC-2024-323PYSEC-2026-1514
Sources
NVDJSONOSV GHSA-f2jm-rw3h-6phgJSONOSV PYSEC-2024-323JSONOSV PYSEC-2026-1514JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
OSV PyPA CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 MEDIUM 5.2 CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L
OSV PyPA CVSS 3.1 MEDIUM 5.2 CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L
NVD security@huntr.dev (Secondary) CVSS 3.0 MEDIUM 5.2 CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD langchain langchain
cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*
< 0.2.9 0.2.9
OSV PyPI langchain-community < 0.2.4 0.2.4
OSV PyPI langchain < 0.2.9 0.2.9

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 17 Sep 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Sep 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Sep 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.