Am I affected?

type your ash_ai version to check

Description

Authorization Bypass Through User-Controlled Key vulnerability in ash-project ash_ai 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, identity_filter/3 built the update/destroy filter directly from the raw tool arguments as [{key, Map.get(arguments, to_string(key))}] and passed it to Ash.Query.do_filter/2. A map value is parsed as a predicate expression rather than a literal, so a caller can send {"public_ref": {"not_eq": "<own-ref>"}} and, combined with Ash.Query.limit(1) and Ash.bulk_update!/Ash.bulk_destroy!, 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 ash_ai: from 0.6.0 before 1.0.0.

Weaknesses & attack patterns

Weakness

CWE-639 · Authorization Bypass Through User-Controlled Key in catalog → MITRE ↗

Attack patterns

CAPEC-77 · Manipulating User-Controlled Variables MITRE ↗

Affected — Hex / ash_ai Hex.pm ↗ Repository ↗

≥ 0.6.0 < 1.0.0 affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*
version type semver
modules · source files · routines
modules 'Elixir.AshAi.Tool.Execution'
source files lib/ash_ai/tool/execution.ex
routines 'Elixir.AshAi.Tool.Execution':identity_filter/3

Affected — GitHub / ash-project/ash_ai Repository ↗

≥ bc2122f < 87f616d affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*
version type git
modules · source files · routines
modules 'Elixir.AshAi.Tool.Execution'
source files lib/ash_ai/tool/execution.ex
routines 'Elixir.AshAi.Tool.Execution':identity_filter/3

References

Credits

Peter Ullrich Finder Reporter
Jonatan Männchen / EEF Coordinator Remediation developer
Zach Daniel / Ash Project Remediation reviewer

CVSS breakdown

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitability

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None

Vulnerable System

Confidentiality
Low
Integrity
High
Availability
None

Subsequent Systems

Confidentiality
None
Integrity
None
Availability
None
« All CVEs