CVE-2024-46946: Input Validation

Published Sep 19, 2024
·
Updated

langchainexperimental (aka LangChain Experimental) 0.1.17 through 0.3.0 for LangChain allows attackers to execute arbitrary code through sympy.sympify (which uses eval) in LLMSymbolicMathChain. LLMSymbolicMathChain was introduced in fcccde406dd9e9b05fc9babcbeb9ff527b0ec0c6 (2023-10-05).

Affected Software

2 affected components
pip/langchain-experimental>=0.1.17<=0.3.0
Langchain langchain-experimental>=0.1.17<=0.3.0

Event History

Sep 19, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 AM
Affected Software
Advisory Published
via GitHub·06:31 AM

Frequently Asked Questions

1

What is the severity of CVE-2024-46946?

CVE-2024-46946 has a severity rating that indicates a significant risk because it allows for arbitrary code execution.

2

How do I fix CVE-2024-46946?

To mitigate CVE-2024-46946, you should upgrade langchain-experimental to version 0.3.1 or higher.

3

What software is affected by CVE-2024-46946?

CVE-2024-46946 affects versions 0.1.17 to 0.3.0 of the langchain-experimental package.

4

When was CVE-2024-46946 introduced?

CVE-2024-46946 was introduced in the langchain-experimental package with the release dated October 5, 2023.

5

What is LLMSymbolicMathChain in the context of CVE-2024-46946?

LLMSymbolicMathChain is a component of langchain-experimental that improperly allows for execution of arbitrary code via sympy.sympify.

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