Hex
CVE-2026-120299
Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
- Severity
- Low 2.1
- Published
- 24 Nov 2026
- Last changed
- 24 Nov 2026
- Added to UpHeron
- 24 Nov 2026
- Fixed in
- 3.38.1
- Attack
- Needs local access · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Change some data
- CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
Description
Improper Input Validation vulnerability in ash-project ash allows an attacker to bypass the input validation of the field types of a :keyword attribute or argument.
Ash.Type.Keyword.cast_input/2 in lib/ash/type/keyword.ex converts a map input to a keyword list in try_map_to_keyword/2, which casts each declared field with Ash.Type.cast_stored/3. That function is meant for trusted values read back from the data layer, so client input skips the cast_input/2 of each field type. apply_constraints/2 casts the result again with cast_input/2, but most types accept a value of their own type unchanged. An embedded resource field is built without its create action, so its validations and changes do not run and its non-public attributes can be set. A :function field accepts a capture string such as &Mod.fun/1, and a :term field decodes Erlang external term format.
This issue affects ash: from 3.24.0 before 3.38.1.
Affected software
| Software | Affected versions |
|---|---|
ashHex · osv:Hex:ash |
|
About ash
Vulnerabilities in ash
- In our list
- 5
- Published in the last 12 months
- 5
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-124283Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in AshHigh 8.9 24 Nov 2026
- CVE-2026-96581An upsert on the primary key in Ash ignores attribute multitenancy, so one tenant can read, overwrite and take over another tenant's recordsHigh 7.6 26 Oct 2026
- CVE-2026-114214Loading a through relationship with a limit of 1 in Ash ignores the through path and returns unrelated destination recordsMedium 6.0 25 Oct 2026
- CVE-2026-55736Private action arguments can be set by user input in AshMedium 5.9 23 Jun 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-120299