CVE-2023-39659: Critical severity langchain vulnerability

Published Aug 15, 2023
·
Updated

An issue in langchain langchain-ai before version 0.0.325 allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool.run component.

Other sources

An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool.run component.

Affected Software

2 affected componentsFixes available
pip/langchain<0.0.325
0.0.325
Langchain Langchain<=0.0.232

Event History

Aug 15, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
06:31 PM

Frequently Asked Questions

1

What is the severity of CVE-2023-39659?

CVE-2023-39659 is classified as a high-severity vulnerability that allows remote code execution.

2

How do I fix CVE-2023-39659?

To fix CVE-2023-39659, upgrade to langchain version 0.0.325 or later.

3

What components are impacted by CVE-2023-39659?

CVE-2023-39659 affects the PythonAstREPLTool._run component in langchain versions prior to 0.0.325.

4

Can I continue using langchain versions before 0.0.325 without any risk?

Using langchain versions before 0.0.325 poses a significant risk due to the potential for arbitrary code execution.

5

What type of attacks can be executed using CVE-2023-39659?

CVE-2023-39659 allows remote attackers to execute arbitrary scripts, leading to potential system compromise.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203