{"schemaVersion":3,"id":"CVE-2026-34070","aliases":["GHSA-qh6h-p6c9-ff54","PYSEC-2026-2193","CGA-2fpf-7g9m-2qmq","CGA-6v6x-63mw-c7c7","CGA-c7x2-7vq7-wwh8","CGA-cvfr-456h-whqf","CGA-cw2v-ff89-99v5","CGA-fp3p-rp74-xr9h","CGA-pr9r-mcxc-f8xq","CGA-qv7j-94qw-fwqp","CGA-w6x4-xqrq-ffqx","CGA-w7ch-hmgx-7j87"],"status":"published","duplicateOf":null,"title":null,"description":"LangChain is a framework for building agents and LLM-powered applications. Prior to version 1.2.22, multiple functions in langchain_core.prompts.loading read files from paths embedded in deserialized config dicts without validating against directory traversal or absolute path injection. When an application passes user-influenced prompt configurations to load_prompt() or load_prompt_from_config(), an attacker can read arbitrary files on the host filesystem, constrained only by file-extension checks (.txt for templates, .json/.yaml for examples). This issue has been patched in version 1.2.22.","dates":{"published":"2026-03-31T02:01:49.320Z","modified":"2026-08-25T12:05:55.349Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01213,"percentile":0.68065,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.16900000000000004,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01382},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01213,"percentile":0.68065}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01382,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01213,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01213,"percentile":0.68065}]},"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}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"langchain-ai","product":"langchain","name":"langchain","label":"langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.2.22","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.22","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":"< 1.2.22","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.22","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":"< 1.2.22","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.22","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54","label":"github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","EVIDENCE","Advisory","Exploit","Vendor Advisory"]},{"url":"https://github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c","label":"github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22","label":"github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22","hostname":"github.com","tags":["X Refsource MISC","WEB","Advisory","Release Notes"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34070","label":"access.redhat.com/security/cve/CVE-2026-34070","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","WEB","Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2453287","label":"bugzilla.redhat.com/show_bug.cgi?id=2453287","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34070.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34070.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24766","label":"access.redhat.com/errata/RHSA-2026:24766","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:59159","label":"access.redhat.com/errata/RHSA-2026:59159","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37275","label":"access.redhat.com/errata/RHSA-2026:37275","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34070","label":"nvd.nist.gov/vuln/detail/CVE-2026-34070","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://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34070.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34070.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-G3P3-7PQR-RGWH"]},"timeline":[{"kind":"published","date":"2026-03-31T02:01:49.320Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-25T12:05:55.349Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:14:45.029Z","stale":false,"partial":false}}