{"id":"CVE-2026-78216","aliases":["EEF-CVE-2026-78216","GHSA-5whv-8rcp-x33j"],"title":"AshLua eval read operations can read field-policy-protected fields via aggregates","titleSource":"EEF","descriptionSource":"OSV","description":"## 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).","severity":"medium","score":6,"published":"2026-09-08T16:42:20.908Z","modified":"2026-11-26T17:23:10.236Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"ash_lua","sources":[{"name":"OSV · EEF-CVE-2026-78216","url":"https://osv.dev/vulnerability/EEF-CVE-2026-78216"}],"ranges":[{"events":[{"introduced":"0.1.0"},{"fixed":"0.2.2"}],"type":"SEMVER"}],"versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.2.0","0.2.1"],"fixed":["0.2.2"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"8675e47cca81f36594083a7e63379bac9e123e72"},{"fixed":"266a5dcc56d5015b6d316c10606169e753b07450"}],"type":"GIT","repo":"https://github.com/ash-project/ash_lua"}],"versions":["v0.2.1","v0.2.0","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"]}],"references":["https://github.com/ash-project/ash_lua/security/advisories/GHSA-5whv-8rcp-x33j","https://cna.erlef.org/cves/CVE-2026-78216.html","https://osv.dev/vulnerability/EEF-CVE-2026-78216","https://github.com/ash-project/ash_lua/commit/8675e47cca81f36594083a7e63379bac9e123e72","https://github.com/ash-project/ash_lua/commit/266a5dcc56d5015b6d316c10606169e753b07450","https://hex.pm/packages/ash_lua"],"sources":[{"name":"CVE","id":"CVE-2026-78216","modified":"2026-11-19T08:31:55.355Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-78216"},{"name":"OSV","id":"EEF-CVE-2026-78216","modified":"2026-11-26T17:23:10.236983397Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-78216"}],"assessments":[{"source":"EEF","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},{"source":"OSV","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}],"cve":{"records":[{"id":"CVE-2026-78216","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-08-31T00:45:02.446Z","published":"2026-09-08T16:42:20.908Z","modified":"2026-11-19T08:31:55.355Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-19T08:31:55.355Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-09-08T17:27:08.856Z"}],"references":[{"url":"https://github.com/ash-project/ash_lua/security/advisories/GHSA-5whv-8rcp-x33j","tags":["vendor-advisory"],"source":"EEF"},{"url":"https://cna.erlef.org/cves/CVE-2026-78216.html","tags":["related"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-78216","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_lua/commit/8675e47cca81f36594083a7e63379bac9e123e72","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_lua/commit/266a5dcc56d5015b6d316c10606169e753b07450","tags":["patch"],"source":"EEF"}],"weaknesses":[{"id":"CWE-1220","description":"CWE-1220 Insufficient Granularity of Access Control","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*","versionEndExcluding":"0.2.2","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-09-08T17:26:34.675766Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"ash-project","name":"ash_lua","platforms":[],"versions":[{"version":"0.1.0","status":"affected","lessThan":"0.2.2","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/ash_lua","packageIdentity":{"ecosystem":"Hex","name":"ash_lua"},"cpes":["cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-78216"},{"vendor":"ash-project","name":"ash_lua","platforms":[],"versions":[{"version":"8675e47cca81f36594083a7e63379bac9e123e72","status":"affected","lessThan":"266a5dcc56d5015b6d316c10606169e753b07450","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ash-project/ash_lua","cpes":["cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-78216"}],"remediation":[],"observedAt":"2026-11-26T17:36:43.678Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T22:45:30.745Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-21T17:45:31.440Z","attemptedAt":"2026-11-21T17:45:31.440Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-21T17:45:32.532Z","attemptedAt":"2026-11-21T17:45:32.532Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-21T17:45:32.532Z","attemptedAt":"2026-11-21T17:45:32.532Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-21T17:45:31.440Z","attemptedAt":"2026-11-21T17:45:31.440Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-78216","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78216","modified":"2026-09-08T19:29:09.680","score":6,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","checkedAt":"2026-11-21T17:45:31.440Z"},{"source":"FIRST EPSS","id":"CVE-2026-78216","url":"https://www.first.org/epss/","probability":0.00427,"percentile":0.37763,"date":"2026-11-21","checkedAt":"2026-11-21T17:45:31.440Z"},{"source":"ENISA EUVD","id":"EUVD-2026-72931","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-72931","modified":"Nov 19, 2026, 8:31:55 AM","score":6,"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","checkedAt":"2026-11-21T17:45:32.532Z"}],"aiSummary":{"text":"AshLua's eval read operations can bypass field-policy protection for certain fields in versions 0.1.0 before 0.2.2. An attacker with access to an eval action can read restricted fields by requesting them as aggregates.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-19T09:01:22.514Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-78216"},{"name":"OSV","url":"https://osv.dev/vulnerability/EEF-CVE-2026-78216"}]}}