{"id":"CVE-2026-120299","aliases":["CVE-2026-120299","EEF-CVE-2026-120299","GHSA-rwmx-99mc-qr2x"],"related":[],"kind":"vulnerability","state":"published","title":"Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper 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\n`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.\n\nThis issue affects ash: from 3.24.0 before 3.38.1.\n\n## Impact\n\nA client that can set a `:keyword` attribute or argument stores field values that the field type's input casting would reject, such as an embedded resource that skipped its create action and validations.\n\n## Configurations\n\nReachable when a `:keyword` attribute or argument that accepts client input declares `fields`, the client sends it as a map (or a JSON string), and one of the field types casts stored values more loosely than input, such as an embedded resource, `:function` or `:term`.","format":"markdown","source":"eef"}],"published":"2026-11-24T13:13:20.054Z","modified":"2026-12-01T20:17:50.980Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","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","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","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","score":2.1,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","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"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"3.24.0","fixed":"3.38.1","status":"affected"}],"vendor":"ash-project","product":"ash","package":"ash","cpe":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash","source":"cvelist"},{"ranges":[{"type":"git","introduced":"71b709232454cff3ca23286c2a6b39a486bc8640","fixed":"97a0a6061bebc2d4f7ebb40928f94a0ac734e498","status":"affected"}],"vendor":"ash-project","product":"ash","package":"ash-project/ash","cpe":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.24.0","status":"affected","fixed":"3.38.1"}],"ecosystem":"Hex","package":"ash","purl":"pkg:hex/ash","source":"eef"},{"ranges":[{"type":"git","introduced":"71b709232454cff3ca23286c2a6b39a486bc8640","status":"affected","fixed":"97a0a6061bebc2d4f7ebb40928f94a0ac734e498"}],"repo":"https://github.com/ash-project/ash","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-120299.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-120299","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash","tags":["package"],"sources":["eef"]}],"credits":["Jace","Jonatan Männchen / EEF","Zach Daniel"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-30T17:57:30.481Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120299","url":"https://www.cve.org/CVERecord?id=CVE-2026-120299","licence":"CVE Terms of Use","modified":"2026-12-01T19:38:30.075Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-120299","url":"https://osv.dev/vulnerability/EEF-CVE-2026-120299","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:02.787Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-120299","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120299","licence":"Public domain","modified":"2026-12-01T20:17:50.980Z"}],"updatedAt":"2026-12-01T20:32:22.642Z","epss":{"score":0.00251,"percentile":0.1769,"date":"2026-12-01T12:00:22.000Z"}}