{"api_version":"1","generated_at":"2026-11-30T14:15:37+00:00","cve":"CVE-2026-120299","urls":{"html":"https://cve.report/CVE-2026-120299","api":"https://cve.report/api/cve/CVE-2026-120299.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-120299","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-120299"},"summary":{"title":"Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types","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.\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.","state":"PUBLISHED","assigner":"EEF","published_at":"2026-11-24 14:18:02","updated_at":"2026-11-24 19:12:16"},"problem_types":["CWE-20","CWE-20 CWE-20 Improper Input Validation"],"metrics":[{"version":"4.0","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","score":"2.1","severity":"LOW","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","data":{"version":"4.0","vectorString":"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","baseScore":2.1,"baseSeverity":"LOW","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}},{"version":"4.0","source":"CNA","type":"CVSS","score":"2.1","severity":"LOW","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","data":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":2.1,"baseSeverity":"LOW","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"}}],"references":[{"url":"https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498","name":"https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498","refsource":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://cna.erlef.org/cves/CVE-2026-120299.html","name":"https://cna.erlef.org/cves/CVE-2026-120299.html","refsource":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x","name":"https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x","refsource":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-120299","name":"https://osv.dev/vulnerability/EEF-CVE-2026-120299","refsource":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640","name":"https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640","refsource":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-120299","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120299","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"ash-project","product":"ash","version":"affected 3.24.0 3.38.1 semver","platforms":[]},{"source":"CNA","vendor":"ash-project","product":"ash","version":"affected 71b709232454cff3ca23286c2a6b39a486bc8640 97a0a6061bebc2d4f7ebb40928f94a0ac734e498 git","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"Jace","lang":"en"},{"source":"CNA","value":"Jace","lang":"en"},{"source":"CNA","value":"Jonatan Männchen / EEF","lang":"en"},{"source":"CNA","value":"Zach Daniel","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"120299","cve":"CVE-2026-120299","epss":"0.002510000","percentile":"0.099620000","score_date":"2026-11-25","updated_at":"2026-11-26 00:09:06"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Ash.Type.Keyword'"],"packageName":"ash","packageURL":"pkg:hex/ash","product":"ash","programFiles":["lib/ash/type/keyword.ex"],"programRoutines":[{"name":"'Elixir.Ash.Type.Keyword':cast_input/2"}],"repo":"https://github.com/ash-project/ash","vendor":"ash-project","versions":[{"lessThan":"3.38.1","status":"affected","version":"3.24.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Ash.Type.Keyword'"],"packageName":"ash-project/ash","packageURL":"pkg:github/ash-project/ash","product":"ash","programFiles":["lib/ash/type/keyword.ex"],"programRoutines":[{"name":"'Elixir.Ash.Type.Keyword':cast_input/2"}],"repo":"https://github.com/ash-project/ash","vendor":"ash-project","versions":[{"lessThan":"97a0a6061bebc2d4f7ebb40928f94a0ac734e498","status":"affected","version":"71b709232454cff3ca23286c2a6b39a486bc8640","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Reachable when a <code>:keyword</code> attribute or argument that accepts client input declares <code>fields</code>, 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, <code>:function</code> or <code>:term</code>.</p>"},{"base64":false,"type":"text/markdown","value":"Reachable 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`."}],"value":"Reachable 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."}],"cpeApplicability":[{"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"}],"credits":[{"lang":"en","type":"finder","value":"Jace"},{"lang":"en","type":"reporter","value":"Jace"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation developer","value":"Zach Daniel"}],"dateAssigned":"2026-11-24T13:01:43.000Z","datePublic":"2026-11-24T13:13:17.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Improper Input Validation vulnerability in ash-project ash allows an attacker to bypass the input validation of the field types of a <code>:keyword</code> attribute or argument.</p>\n<p><code>Ash.Type.Keyword.cast_input/2</code> in <code>lib/ash/type/keyword.ex</code> converts a map input to a keyword list in <code>try_map_to_keyword/2</code>, which casts each declared field with <code>Ash.Type.cast_stored/3</code>. That function is meant for trusted values read back from the data layer, so client input skips the <code>cast_input/2</code> of each field type. <code>apply_constraints/2</code> casts the result again with <code>cast_input/2</code>, 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 <code>:function</code> field accepts a capture string such as <code>&amp;Mod.fun/1</code>, and a <code>:term</code> field decodes Erlang external term format.</p>\n<p>This issue affects ash: from 3.24.0 before 3.38.1.</p>"},{"base64":false,"type":"text/markdown","value":"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\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."}],"value":"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."}],"impacts":[{"capecId":"CAPEC-153","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>A client that can set a <code>:keyword</code> 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.</p>"},{"base64":false,"type":"text/markdown","value":"A 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."}],"value":"A 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."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":2.1,"baseSeverity":"LOW","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20 Improper Input Validation","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T13:13:20.054Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types","tags":["vendor-advisory","related"],"url":"https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x"},{"name":"EEF CNA record for CVE-2026-120299","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-120299.html"},{"name":"OSV record EEF-CVE-2026-120299","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-120299"},{"name":"Introducing commit 71b7092 in ash-project/ash","tags":["related"],"url":"https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640"},{"name":"Fix commit 97a0a60 in ash-project/ash","tags":["patch"],"url":"https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498"}],"source":{"discovery":"EXTERNAL"},"title":"Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types"}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-120299","datePublished":"2026-11-24T13:13:20.054Z","dateReserved":"2026-11-24T12:04:09.559Z","dateUpdated":"2026-11-24T13:13:20.054Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-24 14:18:02","lastModifiedDate":"2026-11-24 19:12:16","problem_types":["CWE-20","CWE-20 CWE-20 Improper Input Validation"],"metrics":{"cvssMetricV40":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","cvssData":{"version":"4.0","vectorString":"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","baseScore":2.1,"baseSeverity":"LOW","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"120299","Ordinal":"1","Title":"Ash.Type.Keyword casts client input as trusted stored data, bypa","CVE":"CVE-2026-120299","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"120299","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Ash.Type.Keyword casts client input as trusted stored data, bypa"}]}}}