{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-120299",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-11-24T12:04:09.559Z",
        "datePublished": "2026-11-24T13:13:20.054Z",
        "dateUpdated": "2026-12-01T19:38:30.075Z"
    },
    "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": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-11-24T13:13:20.054Z"
            },
            "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"
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2026-120299",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2026-11-30T17:57:30.481798Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-12-01T19:38:30.075Z"
                }
            }
        ]
    }
}