{"id":"CVE-2026-120299","aliases":["EEF-CVE-2026-120299","GHSA-rwmx-99mc-qr2x"],"title":"Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types","originalDescription":"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.\n\nAsh.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.\n\nThis issue affects ash: from 3.24.0 before 3.38.1.","severity":{"cvss":2.1,"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","label":"low"},"exploitation":{"kev":null,"epss":{"score":0.00251,"percentile":0.09964},"exploitDb":null},"affected":[{"ecosystem":"Hex","name":"ash","range":">=3.24.0, <3.38.1","fixed":"3.38.1"},{"ecosystem":"unknown","name":"ash","range":">=3.24.0, <3.38.1","fixed":"3.38.1"},{"ecosystem":"unknown","name":"ash-project/ash","range":">=71b709232454cff3ca23286c2a6b39a486bc8640, <97a0a6061bebc2d4f7ebb40928f94a0ac734e498","fixed":"97a0a6061bebc2d4f7ebb40928f94a0ac734e498"}],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x","type":"vendor-advisory"},{"url":"https://cna.erlef.org/cves/CVE-2026-120299.html","type":"related"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-120299","type":"related"},{"url":"https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640","type":"related"},{"url":"https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498","type":"patch"},{"url":"https://hex.pm/packages/ash","type":"package"},{"url":"https://github.com","type":"web"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120299.json","type":"advisory"},{"url":"https://github.com/ash-project/ash","type":"package"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120299","type":"advisory"},{"url":"https://repo.hex.pm","type":"web"}],"sources":[{"name":"nvd","at":"2026-11-24T19:35:15.289Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120299","license":"NVD terms of use","firstSeenAt":"2026-11-24T14:35:52.307Z"},{"name":"osv","at":"2026-11-27T08:12:36.555Z","url":"https://osv.dev/vulnerability/CVE-2026-120299","license":"CC-BY 4.0","firstSeenAt":"2026-11-24T13:30:49.148Z"},{"name":"cvelistV5","at":"2026-11-29T04:45:26.947Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-120299","license":"CVE Terms of Use","firstSeenAt":"2026-11-24T13:27:33.318Z"}],"firstSeenAt":"2026-11-24T13:27:33.318Z","publishedAt":"2026-11-24T13:13:20.054Z","modifiedAt":"2026-11-27T07:00:08.708Z"}