Advisory

GHSA-h59x-p739-982c

Also known as: CVE-2024-28088, PYSEC-2024-43, PYSEC-2024-45

Summary

LangChain directory traversal vulnerability

Details

LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2024-03-04 00:30 UTC
Modified
2024-12-03 05:59 UTC

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.339 (ecosystem)

Fixed versions

0.0.339

Fix

  • Fixed version 0.0.339
    pip install --upgrade langchain==0.0.339

langchain-core

PyPI · All systems

Affected

  • introduced 0, fixed 0.1.30 (ecosystem)

Fixed versions

0.1.30

Fix

  • Fixed version 0.1.30
    pip install --upgrade langchain-core==0.1.30

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences