Vulnerabilities · 2023 · Langchain
CVE-2023-36281
Langchain vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Langchain. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Langchain runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/hwchase17/langchain/issues/4394 · Exploit
- aisec.today/LangChain-2e6244a313dd46139c5ef28cbcab9e55 · Exploit
- github.com/langchain-ai/langchain/releases/tag/v0.0.312
- nvd.nist.gov/vuln/detail/CVE-2023-36281
- github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-151.yaml
- github.com/langchain-ai/langchain/pull/10252
- github.com/langchain-ai/langchain/commit/22abeb9f6cc555591bf8e92b5e328e43aa07ff6c
- github.com/advisories/GHSA-7gfq-f96f-g85j
- nvd.nist.gov/vuln/detail/CVE-2023-36281
- cve.org/CVERecord?id=CVE-2023-36281
More vulnerabilities in Langchain products
CVE-2025-68665CVE-2025-68664CVE-2025-2828CVE-2024-58340CVE-2024-46946CVE-2024-38459CVE-2024-28088CVE-2024-27444All 34
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.