{"id":"CVE-2026-82579","state":"PUBLISHED","title":"AshAi tool loop never terminates when all tool calls are filtered out, enabling denial of service","description":"Loop with Unreachable Exit Condition (Infinite Loop) vulnerability in ash-project ash_ai allows an attacker who can influence a model's output to hang the tool loop and drive unbounded, repeated model requests.\n\nAshAi.ToolLoop classifies a model response of :tool_calls, then filters the calls through normalize_tool_calls/2 and unprocessed_tool_calls/2. Both can empty the list: a call missing a valid name, or one reusing a tool_call_id that already has a result in history, is dropped. With an empty list the loop appended nothing and recursed with a byte-identical message list, so the conversation never advanced and the same request was re-sent every iteration. Under the supported max_iterations: :infinity this never terminated; otherwise it exhausted the full budget. Prompt-injected content can make the model re-emit a spent tool_call_id. The fix treats an empty post-filter list as terminal.\n\nThis issue affects ash_ai: from 0.6.0 before 1.0.0.","publishedAt":"2026-08-31T01:07:49.185Z","updatedAt":"2026-08-31T16:05:58.542Z","severity":{"score":6,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","source":"EEF"},"assigner":"EEF","products":["ash-project ash_ai"],"affected":[{"vendor":"ash-project","product":"ash_ai","packageName":"ash_ai","packageURL":"pkg:hex/ash_ai","defaultStatus":"unaffected","versions":[{"version":"0.6.0","status":"affected","lessThan":"1.0.0","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAi.ToolLoop'"],"programFiles":["lib/ash_ai/tool_loop.ex"],"programRoutines":[{"name":"'Elixir.AshAi.ToolLoop':run/2"},{"name":"'Elixir.AshAi.ToolLoop':stream/2"}],"repo":"https://github.com/ash-project/ash_ai"},{"vendor":"ash-project","product":"ash_ai","packageName":"ash-project/ash_ai","packageURL":"pkg:github/ash-project/ash_ai","defaultStatus":"unaffected","versions":[{"version":"bc2122f78fca6c11d8ec2b9ac53148ec17476460","status":"affected","lessThan":"53325fdab90afab628c6a53232ef2a9001580bd9","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAi.ToolLoop'"],"programFiles":["lib/ash_ai/tool_loop.ex"],"programRoutines":[{"name":"'Elixir.AshAi.ToolLoop':run/2"},{"name":"'Elixir.AshAi.ToolLoop':stream/2"}],"repo":"https://github.com/ash-project/ash_ai"}],"references":["https://github.com/ash-project/ash_ai/security/advisories/GHSA-rcx7-x2w5-mmc2","https://cna.erlef.org/cves/CVE-2026-82579.html","https://osv.dev/vulnerability/EEF-CVE-2026-82579","https://github.com/ash-project/ash_ai/commit/53325fdab90afab628c6a53232ef2a9001580bd9"],"weaknesses":["CWE-835"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/82xxx/CVE-2026-82579.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-82579","state":"PUBLISHED","datePublished":"2026-08-31T01:07:49.185Z","dateUpdated":"2026-08-31T16:05:58.542Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-08-30T20:00:01.852Z"},"containers":{"cna":{"title":"AshAi tool loop never terminates when all tool calls are filtered out, enabling denial of service","descriptions":[{"lang":"en","value":"Loop with Unreachable Exit Condition (Infinite Loop) vulnerability in ash-project ash_ai allows an attacker who can influence a model's output to hang the tool loop and drive unbounded, repeated model requests.\n\nAshAi.ToolLoop classifies a model response of :tool_calls, then filters the calls through normalize_tool_calls/2 and unprocessed_tool_calls/2. Both can empty the list: a call missing a valid name, or one reusing a tool_call_id that already has a result in history, is dropped. With an empty list the loop appended nothing and recursed with a byte-identical message list, so the conversation never advanced and the same request was re-sent every iteration. Under the supported max_iterations: :infinity this never terminated; otherwise it exhausted the full budget. Prompt-injected content can make the model re-emit a spent tool_call_id. The fix treats an empty post-filter list as terminal.\n\nThis issue affects ash_ai: from 0.6.0 before 1.0.0."}],"affected":[{"vendor":"ash-project","product":"ash_ai","packageName":"ash_ai","packageURL":"pkg:hex/ash_ai","defaultStatus":"unaffected","versions":[{"version":"0.6.0","status":"affected","lessThan":"1.0.0","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAi.ToolLoop'"],"programFiles":["lib/ash_ai/tool_loop.ex"],"programRoutines":[{"name":"'Elixir.AshAi.ToolLoop':run/2"},{"name":"'Elixir.AshAi.ToolLoop':stream/2"}],"repo":"https://github.com/ash-project/ash_ai"},{"vendor":"ash-project","product":"ash_ai","packageName":"ash-project/ash_ai","packageURL":"pkg:github/ash-project/ash_ai","defaultStatus":"unaffected","versions":[{"version":"bc2122f78fca6c11d8ec2b9ac53148ec17476460","status":"affected","lessThan":"53325fdab90afab628c6a53232ef2a9001580bd9","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAi.ToolLoop'"],"programFiles":["lib/ash_ai/tool_loop.ex"],"programRoutines":[{"name":"'Elixir.AshAi.ToolLoop':run/2"},{"name":"'Elixir.AshAi.ToolLoop':stream/2"}],"repo":"https://github.com/ash-project/ash_ai"}],"references":[{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-rcx7-x2w5-mmc2","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82579.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82579","tags":["related"]},{"url":"https://github.com/ash-project/ash_ai/commit/53325fdab90afab628c6a53232ef2a9001580bd9","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-835","description":"CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-08-31T01:07:49.185Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*","versionEndExcluding":"1.0.0","versionStartIncluding":"0.6.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Zach Daniel / Ash Project"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"}],"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130 Excessive Allocation"}]}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-rcx7-x2w5-mmc2","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-31T16:05:35.220018Z","id":"CVE-2026-82579","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-31T16:05:58.542Z"}}]}}}