Advisory

PYSEC-2023-138

Also known as: CVE-2023-36095, GHSA-gwqq-6vq7-5j86

Summary

The record has no summary.

Details

An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2023-08-05 03:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.236 (ecosystem)

Fixed versions

0.0.236

Fix

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

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