{"schemaVersion":3,"id":"CVE-2026-102697","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Ollama versions 0.14.0 before 0.31.2 contain an incorrect authorization vulnerability in the experimental agent mode Bash tool approval mechanism that fails to properly parse shell syntax. Attackers who can influence model output through prompt injection can execute additional shell commands by appending control operators like semicolons or logical operators to approved commands, bypassing the session approval requirement.","dates":{"published":"2026-09-29T16:46:08.734Z","modified":"2026-09-29T17:28:26.473Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.5,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.5,"severity":"high","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.5,"severity":"high","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00146,"percentile":0.03536,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-09-30T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00146,"percentile":0.03536}],"last30":[{"date":"2026-09-30T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00146,"percentile":0.03536}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"ollama","product":"ollama","name":"ollama","label":"ollama","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.14.0, < 0.31.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.14.0, < 0.31.2","eol":null,"hubHref":"/vendor/ollama/ollama"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5","label":"github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/ollama/ollama/releases/tag/v0.31.2","label":"github.com/ollama/ollama/releases/tag/v0.31.2","hostname":"github.com","tags":["Release Notes"]},{"url":"https://github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go#L204-L206","label":"github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go","hostname":"github.com","tags":["Technical Description"]},{"url":"https://github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go#L389","label":"github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go","hostname":"github.com","tags":["Technical Description"]},{"url":"https://github.com/ollama/ollama","label":"github.com/ollama/ollama","hostname":"github.com","tags":["Product"]},{"url":"https://www.vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bash-approval-bypass-via-prefix-based-authorization","label":"www.vulncheck.com/advisories/…","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-29T16:46:08.734Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-29T17:28:26.473Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T05:31:26.295Z","stale":false,"partial":false}}