CVE-2026-120299ash-project ash Improper Input Validation
NVD
Vulnerability 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.
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.
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.
CVSS v4.0 Base Metrics — Score 2.1 (LOW)
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NAttack VectorLocal
Attack ComplexityLow
Attack RequirementsPresent
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)Low
Availability (Vulnerable System)None
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Affected & Patched Versions
- ash-project ash >= 3.24.0 and < 3.38.1
- ash-project ash >= 71b709232454cff3ca23286c2a6b39a486bc8640 and < 97a0a6061bebc2d4f7ebb40928f94a0ac734e498
- ash-project ash 3.38.1
- ash-project ash 97a0a6061bebc2d4f7ebb40928f94a0ac734e498
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run ash-project ash and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 24, 2026Published
- Nov 24, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new ash-project ash CVEsYou are reading CVE-2026-120299. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x
- Referencehttps://cna.erlef.org/cves/CVE-2026-120299.html
- Referencehttps://osv.dev/vulnerability/EEF-CVE-2026-120299
- Patchhttps://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640
- Patchhttps://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498
Data last checked: Nov 24, 2026 14:13 UTC