Advisory

PYSEC-2024-45

Also known as: CVE-2024-28088, GHSA-h59x-p739-982c, PYSEC-2024-43

Summary

The record has no summary.

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. (A patch is available as of release 0.1.29 of langchain-core.)

Severity

Not rated by the source.

Dates

Published
2024-03-04 00:15 UTC
Modified
2026-06-10 17:02 UTC

Affected packages and fixes

langchain-core

PyPI · All systems

Affected

  • introduced 0, fixed 0.1.11 (ecosystem)

Fixed versions

0.1.11

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences