CVE-2023-29374: Code Injection

Published Apr 5, 2023
·
Updated

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec() method.

Other sources

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.

Affected Software

2 affected components
pip/langchain<=0.0.131
Langchain Langchain<=0.0.131

Event History

Apr 5, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Advisory Published
via GitHub·03:30 AM

Frequently Asked Questions

1

What is the severity of CVE-2023-29374?

CVE-2023-29374 is classified as a high-severity vulnerability due to its potential for arbitrary code execution.

2

How do I fix CVE-2023-29374?

To fix CVE-2023-29374, update LangChain to version 0.0.132 or later that mitigates the prompt injection attack.

3

What is the impact of CVE-2023-29374?

The impact of CVE-2023-29374 allows attackers to perform prompt injection attacks leading to the execution of arbitrary code.

4

Which versions are affected by CVE-2023-29374?

CVE-2023-29374 affects all versions of LangChain up to and including 0.0.131.

5

Who is vulnerable to CVE-2023-29374?

Any user or application utilizing LangChain versions up to 0.0.131 is vulnerable to CVE-2023-29374.

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