Ash: Private action arguments can be set by user input via string-keyed params and atomic changesets
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Summary
Ash fails to consistently strip private action arguments (those declared with public?: false) when a changeset is built from an untrusted parameter map. Private arguments are meant to be set only by trusted server-side code, but a caller who controls the parameters supplied to an action can inject a value for one. Any actor able to submit parameters to an action that defines a private argument can trigger it.
Details
Private arguments (public?: false) are meant to be populated internally (e.g. via Ash.Changeset.set_private_argument/3) and never accepted from external input. When an action is invoked with a parameter map, Ash should discard keys that name a private argument. The filtering in lib/ash/changeset/changeset.ex is incomplete, and the gap differs across the two parameter paths.
**1. Regular path (for_create, for_update, for_destroy).** cast_params/4 validates keys via get_action_argument/2. Its atom-keyed clause filters on public?, but the binary-keyed (string) clause does not, so a string key matching a private argument name is accepted and written into changeset.arguments. User-supplied parameter maps are string-keyed, making this the reachable case.
**2. Atomic / bulk path (Ash.Changeset.fully_atomic_changeset/4).** atomic_params/4 gates assignment on has_argument?/2, whose atom and binary clauses both omit the public? check, so private arguments are accepted regardless of key type.
PoC
- Define an action with a private argument, e.g.
argument :acting_user_id, :string, public?: false, and a change that writes it into an attribute. - Build the changeset from a string-keyed map including it, e.g.
Ash.Changeset.for_create(Resource, :place, %{"item" => "book", "acting_user_id" => "victim-user-id"}). - Observe
acting_user_idis present inchangeset.argumentsand persisted, whereas the same map with atom keys is correctly stripped. - For the atomic path, call
Ash.Changeset.fully_atomic_changeset(Resource, :promote, %{"acting_user_id" => "victim-user-id"})(atom or string keys) and observe the private argument is retained either way.
Impact
An attacker who can submit parameters to an action that defines a private argument can set that argument to a value of their choosing, overriding data the application intended to control server-side. Where a private argument drives authorization, identity, or record ownership (e.g. acting_user_id), this can lead to an integrity violation or privilege escalation.
Text from GitHub Advisory Database
Affected versions 54
- ash, erlang>= 3.0.0, < 3.29.3GitHub
- ashaffected: 3.0.0 before 3.29.3CVE List
- ashaffected: 5967ed3a483ab949866e6d7b043b043e61703f17 before d9b3100219b3ea86d73202bf7368c03a7688efeaCVE List
- ash, Hexfrom 3.0.0, fixed in 3.29.3OSV
- ash, Hex3.0.0OSV
- ash, Hex3.0.1OSV
- ash, Hex3.0.10OSV
- ash, Hex3.0.11OSV
- ash, Hex3.0.12OSV
- ash, Hex3.0.13OSV
- ash, Hex3.0.14OSV
- ash, Hex3.0.15OSV
- ash, Hex3.0.16OSV
- ash, Hex3.0.2OSV
- ash, Hex3.0.3OSV
- ash, Hex3.0.4OSV
- ash, Hex3.0.5OSV
- ash, Hex3.0.6OSV
- ash, Hex3.0.7OSV
- ash, Hex3.0.8OSV
- ash, Hex3.0.9OSV
- ash, Hex3.1.0OSV
- ash, Hex3.1.1OSV
- ash, Hex3.1.2OSV
- ash, Hex3.1.3OSV
- ash, Hex3.1.4OSV
- ash, Hex3.1.5OSV
- ash, Hex3.1.6OSV
- ash, Hex3.1.7OSV
- ash, Hex3.1.8OSV
- ash, Hex3.10.0OSV
- ash, Hex3.10.1OSV
- ash, Hex3.11.0OSV
- ash, Hex3.11.1OSV
- ash, Hex3.11.2OSV
- ash, Hex3.11.3OSV
- ash, Hex3.12.0OSV
- ash, Hex3.13.0OSV
- ash, Hex3.13.1OSV
- ash, Hex3.13.2OSV
- ash, Hex3.14.0OSV
- ash, Hex3.14.1OSV
- ash, Hex3.15.0OSV
- ash, Hex3.16.0OSV
- ash, Hex3.17.0OSV
- ash, Hex3.17.1OSV
- ash, Hex3.18.0OSV
- ash, Hex3.19.0OSV
- ash, Hex3.19.1OSV
- ash, Hex3.19.2OSV
- ash, Hex3.19.3OSV
- ash, Hex3.2.0OSV
- ash, Hex3.2.1OSV
- ash, Hex3.2.2OSV
References 7
- github.com/ash-project/ash/commit/d9b3100219b3ea86d73202bf7368c03a7688efeaFixvia CVE List
- github.com/ash-project/ash/releases/tag/v3.29.3Fixvia GitHub
- github.com/advisories/GHSA-f4hc-ppw9-4hhwAdvisoryvia GitHub
- github.com/ash-project/ash/security/advisories/GHSA-f4hc-ppw9-4hhwExploitvia CVE List
- nvd.nist.gov/vuln/detail/CVE-2026-55736Referencevia GitHub
- cna.erlef.org/cves/CVE-2026-55736.htmlReferencevia CVE List
- osv.dev/vulnerability/EEF-CVE-2026-55736Referencevia CVE List