{"id":"CVE-2026-82580","state":"PUBLISHED","title":"AshAi echoes raw tool exception messages into the conversation, disclosing internal details","description":"Generation of Error Message Containing Sensitive Information vulnerability in ash-project ash_ai discloses internal error text to chat users.\n\nIn AshAi.ToolLoop and AshAi.Tools, an exception raised while executing a tool was serialized verbatim with Exception.message/1 into the tool-result content. That content is appended to the conversation, emitted as a {:tool_result, ...} stream event, and sent back to the model, which typically relays it to the user. No filtering happened first, so anything raised inside a tool callback or lifecycle hook (database constraint messages, adapter errors, query fragments, policy or validation internals) was echoed as-is. A chat user who can steer tool arguments into a raising code path receives the raw internal text. The fix routes raised tool errors through the same safe formatter used for other tool errors.\n\nThis issue affects ash_ai: from 0.6.0 before 1.0.0.","publishedAt":"2026-08-31T01:09:00.192Z","updatedAt":"2026-08-31T16:06:44.151Z","severity":{"score":5.3,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/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'","'Elixir.AshAi.Tools'"],"programFiles":["lib/ash_ai/tool_loop.ex","lib/ash_ai/tools.ex"],"programRoutines":[{"name":"'Elixir.AshAi.ToolLoop':run/2"},{"name":"'Elixir.AshAi.Tools':normalize_extra_tool_error/1"}],"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":"c68dfbdb220426dc015b58379e95bde8e9f0995a","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAi.ToolLoop'","'Elixir.AshAi.Tools'"],"programFiles":["lib/ash_ai/tool_loop.ex","lib/ash_ai/tools.ex"],"programRoutines":[{"name":"'Elixir.AshAi.ToolLoop':run/2"},{"name":"'Elixir.AshAi.Tools':normalize_extra_tool_error/1"}],"repo":"https://github.com/ash-project/ash_ai"}],"references":["https://github.com/ash-project/ash_ai/security/advisories/GHSA-5747-6mpw-6m9c","https://cna.erlef.org/cves/CVE-2026-82580.html","https://osv.dev/vulnerability/EEF-CVE-2026-82580","https://github.com/ash-project/ash_ai/commit/c68dfbdb220426dc015b58379e95bde8e9f0995a"],"weaknesses":["CWE-209"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/82xxx/CVE-2026-82580.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-82580","state":"PUBLISHED","datePublished":"2026-08-31T01:09:00.192Z","dateUpdated":"2026-08-31T16:06:44.151Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-08-30T15:00:01.232Z"},"containers":{"cna":{"title":"AshAi echoes raw tool exception messages into the conversation, disclosing internal details","descriptions":[{"lang":"en","value":"Generation of Error Message Containing Sensitive Information vulnerability in ash-project ash_ai discloses internal error text to chat users.\n\nIn AshAi.ToolLoop and AshAi.Tools, an exception raised while executing a tool was serialized verbatim with Exception.message/1 into the tool-result content. That content is appended to the conversation, emitted as a {:tool_result, ...} stream event, and sent back to the model, which typically relays it to the user. No filtering happened first, so anything raised inside a tool callback or lifecycle hook (database constraint messages, adapter errors, query fragments, policy or validation internals) was echoed as-is. A chat user who can steer tool arguments into a raising code path receives the raw internal text. The fix routes raised tool errors through the same safe formatter used for other tool errors.\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'","'Elixir.AshAi.Tools'"],"programFiles":["lib/ash_ai/tool_loop.ex","lib/ash_ai/tools.ex"],"programRoutines":[{"name":"'Elixir.AshAi.ToolLoop':run/2"},{"name":"'Elixir.AshAi.Tools':normalize_extra_tool_error/1"}],"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":"c68dfbdb220426dc015b58379e95bde8e9f0995a","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAi.ToolLoop'","'Elixir.AshAi.Tools'"],"programFiles":["lib/ash_ai/tool_loop.ex","lib/ash_ai/tools.ex"],"programRoutines":[{"name":"'Elixir.AshAi.ToolLoop':run/2"},{"name":"'Elixir.AshAi.Tools':normalize_extra_tool_error/1"}],"repo":"https://github.com/ash-project/ash_ai"}],"references":[{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-5747-6mpw-6m9c","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82580.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82580","tags":["related"]},{"url":"https://github.com/ash-project/ash_ai/commit/c68dfbdb220426dc015b58379e95bde8e9f0995a","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.3,"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:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-209","description":"CWE-209 Generation of Error Message Containing Sensitive Information","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-08-31T01:09:00.192Z"},"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-54","descriptions":[{"lang":"en","value":"CAPEC-54 Query System for Information"}]}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-5747-6mpw-6m9c","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-31T16:06:20.887459Z","id":"CVE-2026-82580","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:06:44.151Z"}}]}}}