{"id":"CVE-2025-68664","url":"https://www.cyber-defence.io/tools/cve/CVE-2025-68664","generatedAt":"2026-10-28T00:18:02.537Z","title":"Prior to versions 0.3.81 and 1.2.5, a serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions.","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.","published":"2025-12-23T23:15:45.000Z","lastModified":"2026-10-19T22:10:00.000Z","status":"Analyzed","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","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"},"cwe":["CWE-502"],"affected":["langchain/langchain core"],"epss":{"score":0.4293,"percentile":0.9871,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":1,"verified":false,"firstPublished":"2026-04-29","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":52514,"kind":"exploit","title":"LangChain Core 1.2.4 - SSTI/RCE","url":"https://www.exploit-db.com/exploits/52514","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/multiple/webapps/52514.py","file":"exploits/multiple/webapps/52514.py","published":"2026-04-29","added":"2026-04-29","updated":"2026-04-29","author":"banyamer","type":"webapps","platform":"multiple","port":null,"verified":false,"codes":["CVE-2025-68664"],"tags":null,"aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":null}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 42.9%, higher than 99% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8","tags":["Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6","tags":["Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/langchain-ai/langchain/pull/34455","tags":["Issue Tracking","Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/langchain-ai/langchain/pull/34458","tags":["Issue Tracking","Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81","tags":["Release Notes"],"source":"security-advisories@github.com"},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5","tags":["Release Notes"],"source":"security-advisories@github.com"},{"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm","tags":["Exploit","Vendor Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm","tags":["Exploit","Vendor Advisory"],"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-68664","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}