{"schemaVersion":3,"id":"CVE-2025-68664","aliases":["GHSA-c67j-w6g6-q2cm","PYSEC-2026-373","CGA-3m3m-44m3-hw2q","CGA-7m7c-828q-fqww","CGA-88jc-h5xc-jhxv","CGA-c2w2-77gg-qrv9","CGA-cqxv-g9m4-fhf2","CGA-f7jm-xh6r-5m48","CGA-j369-rgc2-mhxc","CGA-jwj2-xqmp-6w7c","CGA-mx6x-32xr-j8h3","CGA-wcmm-fjmr-cpp2"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-12-23T22:47:44.084Z","modified":"2025-12-24T14:40:58.427Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.3,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":9.3,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","exploitability":10,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":9.3,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","exploitability":10,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.4293,"percentile":0.98709,"severity":"high","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.4293},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.43415,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.43415,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.43415,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.43415,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.4293,"percentile":0.98709}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.4293,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.4293,"percentile":0.98709}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_LANGCHAIN-AI_LANGCHAIN","name":"Langchain","source":"github","url":"https://github.com/langchain-ai/langchain/issues/5872","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"52514","name":"LangChain Core 1.2.4 - SSTI/RCE","source":"exploit-database","url":"https://www.exploit-db.com/exploits/52514","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"multiple","file":"exploits/multiple/webapps/52514.py","codes":["CVE-2025-68664"]},"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-502","name":"Deserialization of Untrusted Data","description":"The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/502.html"}],"affected":[{"vendor":"chainguard","product":"py3-langchain","name":"py3-langchain","label":"py3-langchain","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3-langchain","purlType":"apk","versions":[{"text":"< 1.2.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.6-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.10-langchain","name":"py3.10-langchain","label":"py3.10-langchain","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.10-langchain","purlType":"apk","versions":[{"text":"< 1.2.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.6-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.11-langchain","name":"py3.11-langchain","label":"py3.11-langchain","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.11-langchain","purlType":"apk","versions":[{"text":"< 1.2.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.6-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.12-langchain","name":"py3.12-langchain","label":"py3.12-langchain","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.12-langchain","purlType":"apk","versions":[{"text":"< 1.2.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.6-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.13-langchain","name":"py3.13-langchain","label":"py3.13-langchain","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.13-langchain","purlType":"apk","versions":[{"text":"< 1.2.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.6-r0","eol":null,"hubHref":null},{"vendor":"langchain-ai","product":"langchain","name":"langchain","label":"langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.2.5","noFixRecorded":false,"fixedIn":null},{"text":"< 0.3.81","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.2.5 | < 0.3.81","eol":null,"hubHref":"/vendor/langchain-ai/langchain"},{"vendor":"langchain","product":"langchain_core","name":"langchain core","label":"langchain_core","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.3.81","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.0.0, < 1.2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.81 | ≥ 1.0.0, < 1.2.5","eol":null,"hubHref":"/vendor/langchain/langchain_core"},{"vendor":"PyPI","product":"langchain-core","name":"langchain-core","label":"langchain-core","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langchain-core","purlType":"pypi","versions":[{"text":"< 0.3.81","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.0.0, < 1.2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.81 | ≥ 1.0.0, < 1.2.5","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm","label":"github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Exploit","Vendor Advisory"]},{"url":"https://github.com/langchain-ai/langchain/pull/34455","label":"github.com/langchain-ai/langchain/pull/34455","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Issue Tracking","Patch"]},{"url":"https://github.com/langchain-ai/langchain/pull/34458","label":"github.com/langchain-ai/langchain/pull/34458","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Issue Tracking","Patch"]},{"url":"https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8","label":"github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6","label":"github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81","label":"github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5","label":"github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68664","label":"nvd.nist.gov/vuln/detail/CVE-2025-68664","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/langchain-ai/langchain","label":"github.com/langchain-ai/langchain","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/langchain-core","label":"pypi.org/project/langchain-core","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-c67j-w6g6-q2cm","label":"github.com/advisories/GHSA-c67j-w6g6-q2cm","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68664.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68664.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-FRR2-G3XR-666V"]},"timeline":[{"kind":"published","date":"2025-12-23T22:47:44.084Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-12-24T14:40:58.427Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:27:54.797Z","stale":false,"partial":false}}