CVE-2023-36258: Code Injection

Published Jul 3, 2023
·
Updated

An issue in langchain allows an attacker to execute arbitrary code via the PALChain in the python exec method.

Other sources

An issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because Python code with os.system, exec, or eval can be used.

MITRE

An issue in langchain v.0.0.199 allows an attacker to execute arbitrary code via the PALChain in the python exec method.

Affected Software

2 affected componentsFixes available
pip/langchain<0.0.247
0.0.247
Langchain Langchain=0.0.199

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/langchain to a version that resolves this vulnerability.

    Fixed in 0.0.247

Event History

Jul 3, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:30 PM

Frequently Asked Questions

1

What is the severity of CVE-2023-36258?

CVE-2023-36258 is classified with a high severity due to the potential for arbitrary code execution.

2

How do I fix CVE-2023-36258?

To fix CVE-2023-36258, update to langchain version 0.0.247 or later.

3

What versions of langchain are affected by CVE-2023-36258?

CVE-2023-36258 affects langchain versions prior to 0.0.247, specifically version 0.0.199.

4

What kind of attacks does CVE-2023-36258 enable?

CVE-2023-36258 enables attackers to execute arbitrary code using Python commands like os.system, exec, or eval.

5

Which software is impacted by CVE-2023-36258?

CVE-2023-36258 impacts the langchain software package from versions earlier than 0.0.247.

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