p PatchFirst

CVE-2026-120299

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

CVSS 2.1 · Baja · EPSS 0,3% · Corrección disponible

Compara con tu versión instalada

Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.

  • ashActualiza a 3.38.1

Evalúa los riesgos de tu servidor

La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.

La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.

curl -fsSL https://patchfirst.dev/check.sh | sh
Comprobar tu servidor gratis →

Los canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.

Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.

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.

Publicación
Actualización

Productos y versiones afectados

  • ash

    Versiones
    • ≥ 3.24.0, < 3.38.1: Afectada (semver)

    Actualiza a 3.38.1

  • ash

    Versiones
    • ≥ 71b709232454cff3ca23286c2a6b39a486bc8640, < 97a0a6061bebc2d4f7ebb40928f94a0ac734e498: Afectada (git)

    Sin corrección publicada

Fuentes originales

Comprueba tu servidor →