{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-68664","id":"CVE-2025-68664","title":"LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs","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 ","descriptionLong":"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.","published":"2025-12-23T22:47:44.084Z","updated":"2026-10-28T02:30:29.499399334Z","reserved":"2025-12-22T23:28:02.917Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","rating":"critical","source":"github.com"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","rating":"critical","source":"OSV"},{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","rating":"critical","source":"GitHub"}],"rating":"critical","products":["langchain-ai langchain"],"affectedProducts":[{"vendor":"langchain-ai","product":"langchain","defaultStatus":null,"versions":[{"version":">= 1.0.0, < 1.2.5","status":"affected"},{"version":"< 0.3.81","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":[">=1.0.0 <1.2.5","<0.3.81"],"fixed":["1.2.5","0.3.81"],"advisory":"GHSA-c67j-w6g6-q2cm"}],"cwes":["CWE-502"],"aliases":["GHSA-c67j-w6g6-q2cm","PYSEC-2026-373"],"references":[{"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/langchain-ai/langchain/pull/34455","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/langchain-ai/langchain/pull/34458","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68664.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68664","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2026-373.yaml","tags":["web"]},{"url":"https://pypi.org/project/langchain-core","tags":["web","package"]},{"url":"https://github.com/advisories/GHSA-c67j-w6g6-q2cm","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.4293,"epssPercentile":0.98744,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-68664","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68664","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-68664","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c67j-w6g6-q2cm","ok":true,"note":"GHSA-c67j-w6g6-q2cm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-68664","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["EPSS 43% with CVSS 9.3"],"attention":null}