REDHAT-BUG-2481695: High severity LangChain vulnerability

Published May 26, 2026
·
Updated

LangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.85 and 1.3.3, LangChain contains older runtime code paths that deserialize run inputs, run outputs, or other application-controlled payloads using overly broad object allowlists. These paths may call load() with allowedobjects="all". This does not enable arbitrary Python object deserialization, but it does allow any trusted LangChain-serializable object to be revived, which is broader than these runtime paths require. As a result, attacker-supplied LangChain serialized constructor dictionaries may cause trusted runtime paths to instantiate classes with untrusted constructor arguments. This vulnerability is fixed in 0.3.85 and 1.3.3.

Affected Software

2 affected components
LangChain>0.3.85<0.3.85, =0.3.85
LangChain=1.3.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade langchain to a version that resolves this vulnerability.

    Fixed in 0.3.85
  2. Upgrade

    Upgrade langchain to a version that resolves this vulnerability.

    Fixed in 1.3.3

Event History

May 26, 2026
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2481695?

The severity of REDHAT-BUG-2481695 is classified as high with a score of 7.

2

What vulnerabilities are present in LangChain prior to versions 0.3.85 and 1.3.3 according to REDHAT-BUG-2481695?

According to REDHAT-BUG-2481695, the vulnerabilities involve overly broad object allowlists used in deserialization of run inputs and outputs.

3

How do I fix REDHAT-BUG-2481695?

To fix REDHAT-BUG-2481695, you should upgrade LangChain to version 0.3.85 or later, or to version 1.3.3 or later.

4

What is the main risk associated with REDHAT-BUG-2481695?

The main risk associated with REDHAT-BUG-2481695 is that it allows potential remote code execution due to insecure deserialization.

5

What applications are affected by REDHAT-BUG-2481695?

Applications built using LangChain versions prior to 0.3.85 and 1.3.3 are affected by REDHAT-BUG-2481695.

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