{"id":"CVE-2026-78216","aliases":["CVE-2026-78216","EEF-CVE-2026-78216","GHSA-5whv-8rcp-x33j"],"related":[],"kind":"vulnerability","state":"published","title":"AshLua eval read operations can read field-policy-protected fields via aggregates","summary":"AshLua exposes Ash read actions to Lua scripts run through an eval action. A read call accepts an operation (list, min, max, first, sum, avg) that builds an ad-hoc Ash.Query.Aggregate over a named field and returns its raw value.\n\nAsh field policies redact forbidden fields on returned records (replacing them with %Ash.ForbiddenField{}), but that redaction does not apply to aggregate values. A script could therefore read a field the calling actor's field policies forbid by requesting it as an aggregate instead of as a field. This includes fields that are public? true but restricted per-actor by a field policy, such as sensitive PII. The prior hardening only enforced the exposed-field allow-list (field visibility), which is a separate axis from per-actor field-policy authorization.\n\nThe fix authorizes the aggregated field against the resource's field policies, so aggregating over a field the actor may not see is refused or scoped to the rows where it is visible.\n\nThis issue affects ash_lua: from 0.1.0 before 0.2.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"AshLua exposes Ash read actions to Lua scripts run through an eval action. A read call accepts an operation (list, min, max, first, sum, avg) that builds an ad-hoc Ash.Query.Aggregate over a named field and returns its raw value.\n\nAsh field policies redact forbidden fields on returned records (replacing them with %Ash.ForbiddenField{}), but that redaction does not apply to aggregate values. A script could therefore read a field the calling actor's field policies forbid by requesting it as an aggregate instead of as a field. This includes fields that are public? true but restricted per-actor by a field policy, such as sensitive PII. The prior hardening only enforced the exposed-field allow-list (field visibility), which is a separate axis from per-actor field-policy authorization.\n\nThe fix authorizes the aggregated field against the resource's field policies, so aggregating over a field the actor may not see is refused or scoped to the rows where it is visible.\n\nThis issue affects ash_lua: from 0.1.0 before 0.2.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nAshLua exposes Ash read actions to Lua scripts run through an `eval` action. A read call accepts an `operation` (`list`, `min`, `max`, `first`, `sum`, `avg`) that builds an ad-hoc `Ash.Query.Aggregate` over a named field and returns its raw value.\n\nAsh field policies redact forbidden fields on returned records (replacing them with `%Ash.ForbiddenField{}`), but that redaction does not apply to aggregate values. A script could therefore read a field the calling actor's field policies forbid by requesting it as an aggregate instead of as a field. This includes fields that are `public? true` but restricted per-actor by a field policy, such as sensitive PII. The prior hardening only enforced the exposed-field allow-list (field visibility), which is a separate axis from per-actor field-policy authorization.\n\nThe fix authorizes the aggregated field against the resource's field policies, so aggregating over a field the actor may not see is refused or scoped to the rows where it is visible.\n\nThis issue affects ash_lua: from 0.1.0 before 0.2.2.\n\n## Configurations\n\nReachable only when an application exposes an AshLua `eval` action over a resource whose field policies restrict a field that the calling actor can still name as an operation aggregate (for example a `public? true` but field-policy-protected attribute).","format":"markdown","source":"eef"}],"published":"2026-09-08T16:42:20.908Z","modified":"2026-11-26T17:23:10.236Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-1220"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"0.2.2","status":"affected"}],"vendor":"ash-project","product":"ash_lua","package":"ash_lua","cpe":"cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_lua","source":"cvelist"},{"ranges":[{"type":"git","introduced":"8675e47cca81f36594083a7e63379bac9e123e72","fixed":"266a5dcc56d5015b6d316c10606169e753b07450","status":"affected"}],"vendor":"ash-project","product":"ash_lua","package":"ash-project/ash_lua","cpe":"cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_lua","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.2.2"}],"ecosystem":"Hex","package":"ash_lua","purl":"pkg:hex/ash_lua","source":"eef"},{"ranges":[{"type":"git","introduced":"8675e47cca81f36594083a7e63379bac9e123e72","status":"affected","fixed":"266a5dcc56d5015b6d316c10606169e753b07450"}],"repo":"https://github.com/ash-project/ash_lua","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_lua/security/advisories/GHSA-5whv-8rcp-x33j","tags":["advisory","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-78216.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-78216","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_lua/commit/8675e47cca81f36594083a7e63379bac9e123e72","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_lua/commit/266a5dcc56d5015b6d316c10606169e753b07450","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_lua","tags":["package"],"sources":["eef"]}],"credits":["Aaron Hong / Remedy","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-08T17:26:34.675Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-78216","url":"https://www.cve.org/CVERecord?id=CVE-2026-78216","licence":"CVE Terms of Use","modified":"2026-11-19T08:31:55.355Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-78216","url":"https://osv.dev/vulnerability/EEF-CVE-2026-78216","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:10.236Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-78216","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78216","licence":"Public domain","modified":"2026-09-08T19:29:09.680Z"}],"updatedAt":"2026-11-26T17:37:07.861Z","epss":{"score":0.00246,"percentile":0.16961,"date":"2026-12-01T12:00:22.000Z"}}