CVE-2026-120299
published low CVSS 4.0 · 2.1Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ash-project | — | ash3.24.0 to < 3.38.1 · Other versions: unaffected | Affected | Not stated | EEF |
| ash-project | — | ash-project/ashash · 71b709232454cff3ca23286c2a6b39a486bc8640 to < 97a0a6061bebc2d4f7ebb40928f94a0ac734e498 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ash-project | ash | 3.24.0 to < 3.38.1 (affected · semver)Default: unaffected | EEF · cna |
| ash-project | ash | 71b709232454cff3ca23286c2a6b39a486bc8640 to < 97a0a6061bebc2d4f7ebb40928f94a0ac734e498 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-20 CWE-20 Improper Input Validation
References
5- EEF CNA record for CVE-2026-120299 https://cna.erlef.org/cves/CVE-2026-120299.html
- Introducing commit 71b7092 in ash-project/ash https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640
- Fix commit 97a0a60 in ash-project/ash https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498
- Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x
- OSV record EEF-CVE-2026-120299 https://osv.dev/vulnerability/EEF-CVE-2026-120299
Provider assertions
2EEF · cna
Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 743fa3809d982a84b09a58920b37129ea3a98f28ffbee9a26769608b5b0cc40f
- Ingested
- 01 Dec 2026, 19:45:56 UTC
- Source record
- Official CVE record