CVE-2026-120299
Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
- CVSS
- 2.1
- EPSS
- 0.25% (p10)
- Published
- 2026-11-24
- Age
- 5d old
- Modified
- 2026-11-27
- Product
- ash-project ash
- Aliases
- EEF-CVE-2026-120299, GHSA-rwmx-99mc-qr2x
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
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.
Fixed in
3.38.1 · 97a0a6061bebc2d4f7ebb40928f94a0ac734e498
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Hex | ash | >=3.24.0, <3.38.1 | 3.38.1 |
| unknown | ash | >=3.24.0, <3.38.1 | 3.38.1 |
| unknown | ash-project/ash | >=71b709232454cff3ca23286c2a6b39a486bc8640, <97a0a6061bebc2d4f7ebb40928f94a0ac734e498 | 97a0a6061bebc2d4f7ebb40928f94a0ac734e498 |
Sources
- NVD · first seen 5d ago · NVD terms of use
- OSV · first seen 5d ago · CC-BY 4.0
- CVE List · first seen 5d ago · CVE Terms of Use
References
- https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-120299.html related
- https://osv.dev/vulnerability/EEF-CVE-2026-120299 related
- https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640 related
- https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498 patch
- https://hex.pm/packages/ash package
- https://github.com web
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120299.json advisory
- https://github.com/ash-project/ash package
- https://nvd.nist.gov/vuln/detail/CVE-2026-120299 advisory
- https://repo.hex.pm web