# CVE-2026-120299: Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types

- Severity: Low 2.1 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-11-24T13:13:20.054Z
- Modified: 2026-12-01T20:17:50.980Z
- Also known as: EEF-CVE-2026-120299, GHSA-rwmx-99mc-qr2x
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## 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.

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.

(As written by CVE List.)

## Affected

- ash: from 3.24.0 before 3.38.1
- ash-project/ash: from 71b709232454cff3ca23286c2a6b39a486bc8640 before 97a0a6061bebc2d4f7ebb40928f94a0ac734e498
- ash (Hex): from 3.24.0 before 3.38.1
- https://github.com/ash-project/ash: from 71b709232454cff3ca23286c2a6b39a486bc8640 before 97a0a6061bebc2d4f7ebb40928f94a0ac734e498

## Every score

- EEF: CVSS:4.0 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:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-120299.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-120299> (related)
- <https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640> (related, web)
- <https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498> (fix, patch)
- <https://hex.pm/packages/ash> (package)

## Sources

- CVE List: [CVE-2026-120299](https://www.cve.org/CVERecord?id=CVE-2026-120299), CVE Terms of Use, modified 2026-12-01
- Erlang Ecosystem Foundation: [EEF-CVE-2026-120299](https://osv.dev/vulnerability/EEF-CVE-2026-120299), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-120299](https://nvd.nist.gov/vuln/detail/CVE-2026-120299), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-120299 · Whole record: https://cve.day/CVE-2026-120299.json · Rebuilt by cve.day 2026-12-01T20:32:22.642Z
