Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.3

Ash: User Input Can Set Private Action Argument Values

published 4 months ago
Summary

A security issue in Ash allows users to set private argument values that should be controlled by trusted server-side code. This can lead to integrity violations or privilege escalations if the argument is used for authorization or record ownership. Affected Ash versions before 3.29.3 should be updated to fix this issue.

What to do
  • Update ash-project ash to version 3.29.3.
Affected software
Ecosystem VendorProductAffected versions
Hex ash-project ash >= 3.0.0, < 3.29.3
Fix: upgrade to 3.29.3
Original advisory text
Private action arguments can be set by user input in Ash
## Summary

Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerability in ash-project ash allows a user to set the value of a private action argument that is intended to be controlled only by trusted server-side code.

Action arguments declared with public?: false are meant to be set internally (for example via Ash.Changeset.set\_private\_argument/3) and must not be settable from end-user input. When a changeset is built from a parameter map, Ash filters out private arguments, but the filtering is incomplete.

In the regular changeset path (for\_create, for\_update, for\_destroy), private arguments are stripped only when the parameter key is an atom. When the key is a binary (string), as is the case for user-supplied parameters, the private argument is kept and the user controls its value. In the atomic path (Ash.Changeset.fully\_atomic\_changeset/4, also reached through atomic and bulk updates), private arguments are not stripped at all, regardless of whether the key is an atom or a binary.

An attacker who can submit parameters to an action that defines a private argument can therefore inject a value for that argument. Depending on how the application uses the argument (for example an acting\_user\_id driving authorization or record ownership), this can lead to an integrity violation or privilege escalation.

This issue affects ash: from 3.0.0 before 3.29.3.

## Configuration

An action must declare a private argument (one defined with public?: false) whose value is meant to be set only by trusted server-side code, and the application must build the changeset from untrusted user-supplied parameters, passing them straight into Ash.Changeset.for\_create/3, for\_update/3, for\_destroy/3, or into an atomic or bulk update.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
7.3 High
Type
CWE-915Improperly Controlled Modification of Dynamically-Determined Object Attributes
Timeline
Published23 Jun 2026
Updated23 Jun 2026
First seen23 Jun 2026
Track software like this
Free during beta