Advisory

GHSA-7gfq-f96f-g85j

Also known as: CVE-2023-36281, PYSEC-2023-151

Summary

langchain vulnerable to arbitrary code execution

Details

An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via the via the a json file to the load_prompt parameter. This is related to __subclasses__ or a template.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-08-22 21:30 UTC
Modified
2024-09-30 16:36 UTC

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.312 (ecosystem)

Fixed versions

0.0.312

Fix

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

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