CVE-2026-82564: Identity tool filter in AshAi accepts operator maps, allowing update or destroy of unidentified records
Authorization Bypass Through User-Controlled Key vulnerability in ash-project ashai allows a caller of an identity-configured tool to update or destroy records it never identified, including every row in the table.
In AshAi.Tool.Execution, identityfilter/3 built the update/destroy filter directly from the raw tool arguments as [{key, Map.get(arguments, tostring(key))}] and passed it to Ash.Query.dofilter/2. A map value is parsed as a predicate expression rather than a literal, so a caller can send {"publicref": {"noteq": "<own-ref>"}} and, combined with Ash.Query.limit(1) and Ash.bulkupdate!/Ash.bulkdestroy!, retarget the write at a record it never identified; an omitted key yields an IS NULL filter that matches an arbitrary row. The fix casts each identity value to the field type, rejecting non-scalar inputs.
This issue affects ashai: from 0.6.0 before 1.0.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ash-project/ash_aito a version that resolves this vulnerability.Fixed in 1.0.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch from 0.6.0 before 1.0.0