{"id":"EEF-CVE-2026-120299","aliases":["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","titleSource":"EEF","descriptionSource":"OSV","description":"## 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`.","severity":"low","score":2.1,"published":"2026-11-24T13:13:20.054Z","modified":"2026-11-25T17:23:02.787Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"ash","sources":[{"name":"OSV · EEF-CVE-2026-120299","url":"https://osv.dev/vulnerability/EEF-CVE-2026-120299"}],"ranges":[{"events":[{"introduced":"3.24.0"},{"fixed":"3.38.1"}],"type":"SEMVER"}],"versions":["3.24.0","3.24.1","3.24.2","3.24.3","3.24.4","3.24.5","3.24.6","3.24.7","3.25.0","3.25.1","3.25.2","3.26.0","3.27.0","3.27.1","3.27.2","3.27.3","3.27.4","3.27.5","3.27.6","3.27.7","3.27.8","3.28.0","3.29.0","3.29.1","3.29.2","3.29.3","3.30.0","3.30.1","3.31.0","3.31.1","3.31.2","3.31.3","3.32.0","3.32.1","3.32.2","3.32.3","3.33.0","3.33.1","3.33.10","3.33.11","3.33.2","3.33.3","3.33.4","3.33.5","3.33.6","3.33.7","3.33.8","3.33.9","3.34.0","3.34.1","3.34.2","3.34.3","3.34.4","3.34.5","3.34.6","3.35.0","3.36.0","3.36.1","3.37.0","3.37.1","3.37.2","3.37.3","3.37.4","3.37.5","3.37.6","3.37.7","3.38.0"],"fixed":["3.38.1"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"71b709232454cff3ca23286c2a6b39a486bc8640"},{"fixed":"97a0a6061bebc2d4f7ebb40928f94a0ac734e498"}],"type":"GIT","repo":"https://github.com/ash-project/ash"}],"versions":["v3.38.0","v3.37.7","v3.37.6","v3.37.5","v3.37.4","v3.37.3","v3.37.2","v3.37.1","v3.37.0","v3.36.1","v3.36.0","v3.35.0","v3.34.6","v3.34.5","v3.34.4","v3.34.3","v3.34.2","v3.34.1","v3.34.0","v3.33.11","v3.33.10","v3.33.9","v3.33.7","v3.33.6","v3.33.5","v3.33.4","v3.33.3","v3.33.2","v3.33.1","v3.32.3","v3.32.2","v3.32.1","v3.31.3","v3.31.2","v3.31.1","v3.31.0","v3.30.1","v3.30.0","v3.29.3","v3.29.2","v3.29.1","v3.29.0","v3.28.0","v3.27.8","v3.27.7","v3.27.6","v3.27.4","v3.27.3","v3.27.2","v3.27.1","v3.27.0","v3.26.0","v3.25.2","v3.25.1","v3.25.0","v3.24.7","v3.24.6","v3.24.5","v3.24.4","v3.24.3","v3.24.2","v3.24.1","v3.24.0"]}],"references":["https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x","https://cna.erlef.org/cves/CVE-2026-120299.html","https://osv.dev/vulnerability/EEF-CVE-2026-120299","https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640","https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498","https://hex.pm/packages/ash"],"sources":[{"name":"CVE","id":"CVE-2026-120299","modified":"2026-11-24T13:13:20.054Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-120299"},{"name":"OSV","id":"EEF-CVE-2026-120299","modified":"2026-11-25T17:23:02.787281947Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-120299"}],"assessments":[{"source":"EEF","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},{"source":"OSV","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}],"cve":{"records":[{"id":"CVE-2026-120299","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-24T12:04:09.559Z","published":"2026-11-24T13:13:20.054Z","modified":"2026-11-24T13:13:20.054Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-24T13:13:20.054Z"}],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x","tags":["vendor-advisory","related"],"source":"EEF"},{"url":"https://cna.erlef.org/cves/CVE-2026-120299.html","tags":["related"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-120299","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498","tags":["patch"],"source":"EEF"}],"weaknesses":[{"id":"CWE-20","description":"CWE-20 Improper Input Validation","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","versionEndExcluding":"3.38.1","versionStartIncluding":"3.24.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[]},"products":[{"vendor":"ash-project","name":"ash","platforms":[],"versions":[{"version":"3.24.0","status":"affected","lessThan":"3.38.1","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/ash","packageIdentity":{"ecosystem":"Hex","name":"ash"},"cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-120299"},{"vendor":"ash-project","name":"ash","platforms":[],"versions":[{"version":"71b709232454cff3ca23286c2a6b39a486bc8640","status":"affected","lessThan":"97a0a6061bebc2d4f7ebb40928f94a0ac734e498","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ash-project/ash","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-120299"}],"remediation":[],"observedAt":"2026-11-25T17:45:41.734Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T01:35:31.017Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-25T06:20:36.330Z","attemptedAt":"2026-11-25T06:20:36.330Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-25T06:15:35.304Z","attemptedAt":"2026-11-25T06:15:35.304Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-25T06:20:38.170Z","attemptedAt":"2026-11-25T06:20:38.170Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-25T06:20:36.659Z","attemptedAt":"2026-11-25T06:20:36.659Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-120299","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120299","modified":"2026-11-24T19:12:16.707","score":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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","checkedAt":"2026-11-25T06:20:36.330Z"},{"source":"ENISA EUVD","id":"EUVD-2026-134084","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-134084","modified":"Nov 24, 2026, 1:13:20 PM","score":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","checkedAt":"2026-11-25T06:20:38.170Z"}],"aiSummary":null}