Vulnerabilities · 2023 · Langchain
CVE-2023-36095
Langchain vulnerability
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.
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/langchain-ai/langchain/issues/5872 · Exploit
- langchain.com
- github.com/hwchase17/langchain
- nvd.nist.gov/vuln/detail/CVE-2023-36095
- github.com/langchain-ai/langchain/pull/6003
- github.com/langchain-ai/langchain/pull/7870
- github.com/langchain-ai/langchain/commit/8ba9835b925473655914f63822775679e03ea137
- github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e
- nvd.nist.gov/vuln/detail/CVE-2023-36095
- cve.org/CVERecord?id=CVE-2023-36095
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.