EEF-CVE-2026-120299

Source
https://cna.erlef.org/osv/EEF-CVE-2026-120299.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-120299.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-120299
Aliases
  • GHSA-rwmx-99mc-qr2x
  • CVE-2026-120299
Published
2026-11-24T13:13:20Z
Modified
2026-11-24T13:15:02Z
Severity
  • 2.1 (Low) CVSS_V4 - 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 (Source: CNA) CVSS Calculator
Summary
Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
Details

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.

Impact

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.

Configurations

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.

Database specific
{
    "capec_ids":  [
        "CAPEC-153"
    ],
    "cpe_ids":  [
        "cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"
    ],
    "cwe_ids":  [
        "CWE-20"
    ]
}
References
Credits
    • Jace - FINDER
    • Jace - REPORTER
    • Jonatan Männchen / EEF - ANALYST
    • Zach Daniel - REMEDIATION_DEVELOPER

Affected packages

Hex / ash

Package

Name
ash
Purl
pkg:hex/ash

Affected ranges

Type
SEMVER
Events
Introduced
3.24.0
Fixed
3.38.1

Affected versions

3.*
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.2
3.33.3
3.33.4
3.33.5
3.33.6
3.33.7
3.33.8
3.33.9
3.33.10
3.33.11
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

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-120299.json"

Git / github.com/ash-project/ash

Affected ranges

Type
GIT
Repo
https://github.com/ash-project/ash
Events

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-120299.json"