# CVE-2025-68664: LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 44.1%, higher than 98% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-23T18:46:13.000Z
- Modified: 2026-10-27T17:00:03.967Z
- Also known as: GHSA-c67j-w6g6-q2cm, PYSEC-2026-373
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

LangChain is a framework for building agents and LLM-powered applications. Prior to versions 0.3.81 and 1.2.5, a serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions. The functions do not escape dictionaries with 'lc' keys when serializing free-form dictionaries. 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 versions 0.3.81 and 1.2.5.

(As written by CVE List.)

## Affected

- langchain-ai langchain: >= 1.0.0, < 1.2.5; < 0.3.81
- langchain-core (PyPI): from 1.0.0 before 1.2.5; before 0.3.81
- langchain langchain_core: before 0.3.81; from 1.0.0 before 1.2.5

## Every score

- GitHub_M: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N`

## References

- <https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm> (exploit, vendor-advisory, web)
- <https://github.com/langchain-ai/langchain/pull/34455> (issue-tracking, patch, web)
- <https://github.com/langchain-ai/langchain/pull/34458> (issue-tracking, patch, web)
- <https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8> (patch, web)
- <https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6> (patch, web)
- <https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81> (release-notes, web)
- <https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68664> (advisory)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2026-373.yaml> (web)
- <https://pypi.org/project/langchain-core> (package, web)
- <https://github.com/advisories/GHSA-c67j-w6g6-q2cm> (advisory)

## Sources

- CVE List: [CVE-2025-68664](https://www.cve.org/CVERecord?id=CVE-2025-68664), CVE Terms of Use, modified 2025-12-24
- GitHub Advisory Database: [GHSA-c67j-w6g6-q2cm](https://github.com/advisories/GHSA-c67j-w6g6-q2cm), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2025-68664](https://nvd.nist.gov/vuln/detail/CVE-2025-68664), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-373](https://osv.dev/vulnerability/PYSEC-2026-373), CC-BY-4.0, modified 2026-07-02

---

Page: https://cve.day/CVE-2025-68664 · Whole record: https://cve.day/CVE-2025-68664.json · Rebuilt by cve.day 2026-11-25T22:59:09.854Z
