kcve.ai취약점 정보 · 내 자산 확인

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

설명

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.

영향 받는 제품 제품 1개

  • ash-project

    ash

    해결 버전 있음

    영향 받는 버전

    • 3.24.0 이상 3.38.1 미만

    해결 버전

    • 3.38.1 이상

참고 자료 5건

‹ 목록

점검 지원 범위 문의

도입 문의