# CVE-2023-36281

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-08-22 · Modified: 2024-10-15
- Aliases: GHSA-7gfq-f96f-g85j, PYSEC-2023-151
- Record: https://cvemate.com/vulnerability/CVE-2023-36281 · JSON: https://cvemate.com/vulnerability/CVE-2023-36281/json

## Description

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

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 3.412%, percentile 89.256%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github, reference)

## Affected

- langchain langchain: 0.0.171
- PyPI langchain (PyPI): \< 0.0.312 \| \< 0.0.171

## References

- <https://github.com/hwchase17/langchain/issues/4394>
- <https://aisec.today/LangChain-2e6244a313dd46139c5ef28cbcab9e55>
- <https://github.com/langchain-ai/langchain/releases/tag/v0.0.312>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-36281>
- <https://github.com/langchain-ai/langchain/pull/10252>
- <https://github.com/langchain-ai/langchain/commit/22abeb9f6cc555591bf8e92b5e328e43aa07ff6c>
- <https://github.com/langchain-ai/langchain>
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-151.yaml>
- <https://github.com/advisories/GHSA-7gfq-f96f-g85j>

---

Data as of 2026-12-05T13:31:23.536Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
