Schwachstellen / CVE-2025-68665

kritisch

CVE-2025-68665

langchain-core: LangChain: Arbitrary Code Execution via Serialization Injection

Veröffentlicht Geändert CWE 502
In der Trivy Database seit spätestens 24. Okt. 2026, 07:11 UTCWann der Eintrag vor diesem Build hinzukam, ist nicht erfasst.

Einstufung nach Quelle

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GHSA8.6CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Red Hat8.6CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Trivys eigenes Label ist CRITICAL. Kritisch laut NVD. Niedriger laut GHSA (hoch), Red Hat (hoch).

Beschreibung

LangChain is a framework for building LLM-powered applications. Prior to @langchain/core versions 0.3.80 and 1.1.8, and prior to langchain versions 0.3.37 and 1.2.3, a serialization injection vulnerability exists in LangChain JS's toJSON() method (and subsequently when string-ifying objects using JSON.stringify(). The method did not escape objects with 'lc' keys when serializing free-form data in kwargs. The 'lc' key is used internally by LangChain to mark serialized objects. When user-controlled data contains this key structure, it is treated as a legitimate LangChain object during deserialization rather than plain user data. This issue has been patched in @langchain/core versions 0.3.80 and 1.1.8, and langchain versions 0.3.37 and 1.2.3

Betroffene Pakete und behobene Versionen

QuellePaketBehoben in
chainguardkibana-8.17, kibana-8.18, kibana-8.19 und 6 weitere8.17.10-r6 und 7 weitere
echo npm::Echo OSV@langchain/core, langchain0.3.37
minimoskibana-8.19, kibana-9.2, kibana-9.38.19.15-r0 und 2 weitere
npm::GitHub Security Advisory npm@langchain/core, langchain1.1.8, 0.3.80 und 1 weitere
Alle 16 Einträge aus 4 Quellen zeigen
QuellePaketBehoben in
chainguardkibana-8.178.17.10-r6
chainguardkibana-8.188.18.8-r6
chainguardkibana-8.198.19.9-r2
chainguardkibana-9.09.0.8-r5
chainguardkibana-9.19.1.9-r1
chainguardkibana-9.29.2.3-r1
chainguardlangfuse-22.95.12-r4
chainguardlangfuse-fips-22.95.12-r4
chainguardlibrechat0.8.1-r1
echo npm::Echo OSV@langchain/core0.3.37
echo npm::Echo OSVlangchain0.3.37
minimoskibana-8.198.19.15-r0
minimoskibana-9.29.2.5-r0
minimoskibana-9.39.3.4-r0
npm::GitHub Security Advisory npm@langchain/core1.1.8, 0.3.80
npm::GitHub Security Advisory npmlangchain1.2.3, 0.3.37

Referenzen

Alle 10 Referenzen

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.