{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-78216","id":"CVE-2026-78216","title":"AshLua eval read operations can read field-policy-protected fields via aggregates","description":"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 scri","descriptionLong":"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.","published":"2026-09-08T16:42:20.908Z","updated":"2026-10-28T02:30:44.903380896Z","reserved":"2026-08-31T00:45:02.446Z","status":"Deferred","rejected":false,"assigner":"EEF","metric":{"version":"4.0","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","rating":"medium","source":"EEF"},"metrics":[{"version":"4.0","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","rating":"medium","source":"EEF"},{"version":"4.0","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","rating":"medium","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"medium","products":["ash-project ash_lua"],"affectedProducts":[{"vendor":"ash-project","product":"ash_lua","defaultStatus":"unaffected","versions":[{"lessThan":"0.2.2","status":"affected","version":"0.1.0","versionType":"semver"}],"platforms":[]},{"vendor":"ash-project","product":"ash_lua","defaultStatus":"unaffected","versions":[{"lessThan":"266a5dcc56d5015b6d316c10606169e753b07450","status":"affected","version":"8675e47cca81f36594083a7e63379bac9e123e72","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-1220"],"aliases":["EEF-CVE-2026-78216","GHSA-5whv-8rcp-x33j"],"references":[{"url":"https://github.com/ash-project/ash_lua/security/advisories/GHSA-5whv-8rcp-x33j","tags":["vendor-advisory","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-78216.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-78216","tags":["related","web"]},{"url":"https://github.com/ash-project/ash_lua/commit/8675e47cca81f36594083a7e63379bac9e123e72","tags":["related","fix"]},{"url":"https://github.com/ash-project/ash_lua/commit/266a5dcc56d5015b6d316c10606169e753b07450","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78216.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78216","tags":["advisory"]},{"url":"https://github.com/ash-project/ash_lua","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00427,"epssPercentile":0.37644,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-78216","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78216","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-78216","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-78216","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}