{"id":"CVE-2026-82586","state":"PUBLISHED","title":"AshLua read operation aggregate bypasses the exposed-field allow-list, exposing private attributes","description":"Improper Protection of Alternate Path vulnerability in ash-project ash_lua allows a user-supplied Lua script to read attributes that are not on the exposed-field allow-list.\n\nAshLua exposes Ash resources to Lua scripts, gated by a manifest declaring which fields are exposed. The read action's operation aggregate path in AshLua.Runtime took the field name straight from the Lua call and resolved it with only String.to_existing_atom and Ash.Query.Aggregate.new!, neither of which consults the exposed-field allow-list the normal fields path enforces. A script can therefore read the value of any attribute of any record the actor may read, including private sensitive?: true columns, via resource.read({ operation = {\"list\", \"hashed_password\"} }); min and max give a value oracle. Anyone able to submit or influence a Lua script can reach this.\n\nThis issue affects ash_lua: from 0.1.0 before 0.2.1.","publishedAt":"2026-09-07T22:34:14.837Z","updatedAt":"2026-09-08T14:44:37.935Z","severity":{"score":8.2,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","source":"EEF"},"assigner":"EEF","products":["ash-project ash_lua"],"affected":[{"vendor":"ash-project","product":"ash_lua","packageName":"ash_lua","packageURL":"pkg:hex/ash_lua","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.2.1","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshLua.Runtime'"],"programFiles":["lib/ash_lua/runtime.ex"],"programRoutines":[{"name":"'Elixir.AshLua.Runtime':eval!/2"}],"repo":"https://github.com/ash-project/ash_lua"},{"vendor":"ash-project","product":"ash_lua","packageName":"ash-project/ash_lua","packageURL":"pkg:github/ash-project/ash_lua","defaultStatus":"unaffected","versions":[{"version":"8675e47cca81f36594083a7e63379bac9e123e72","status":"affected","lessThan":"c0dfcd9494766d548178c37df0bd01cff378e1c7","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshLua.Runtime'"],"programFiles":["lib/ash_lua/runtime.ex"],"programRoutines":[{"name":"'Elixir.AshLua.Runtime':eval!/2"}],"repo":"https://github.com/ash-project/ash_lua"}],"references":["https://github.com/ash-project/ash_lua/security/advisories/GHSA-37jv-wc37-fhcw","https://cna.erlef.org/cves/CVE-2026-82586.html","https://osv.dev/vulnerability/EEF-CVE-2026-82586","https://github.com/ash-project/ash_lua/commit/c0dfcd9494766d548178c37df0bd01cff378e1c7"],"weaknesses":["CWE-424"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/82xxx/CVE-2026-82586.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-82586","state":"PUBLISHED","datePublished":"2026-09-07T22:34:14.837Z","dateUpdated":"2026-09-08T14:44:37.935Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-09-07T19:30:01.631Z"},"containers":{"cna":{"title":"AshLua read operation aggregate bypasses the exposed-field allow-list, exposing private attributes","descriptions":[{"lang":"en","value":"Improper Protection of Alternate Path vulnerability in ash-project ash_lua allows a user-supplied Lua script to read attributes that are not on the exposed-field allow-list.\n\nAshLua exposes Ash resources to Lua scripts, gated by a manifest declaring which fields are exposed. The read action's operation aggregate path in AshLua.Runtime took the field name straight from the Lua call and resolved it with only String.to_existing_atom and Ash.Query.Aggregate.new!, neither of which consults the exposed-field allow-list the normal fields path enforces. A script can therefore read the value of any attribute of any record the actor may read, including private sensitive?: true columns, via resource.read({ operation = {\"list\", \"hashed_password\"} }); min and max give a value oracle. Anyone able to submit or influence a Lua script can reach this.\n\nThis issue affects ash_lua: from 0.1.0 before 0.2.1."}],"affected":[{"vendor":"ash-project","product":"ash_lua","packageName":"ash_lua","packageURL":"pkg:hex/ash_lua","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.2.1","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshLua.Runtime'"],"programFiles":["lib/ash_lua/runtime.ex"],"programRoutines":[{"name":"'Elixir.AshLua.Runtime':eval!/2"}],"repo":"https://github.com/ash-project/ash_lua"},{"vendor":"ash-project","product":"ash_lua","packageName":"ash-project/ash_lua","packageURL":"pkg:github/ash-project/ash_lua","defaultStatus":"unaffected","versions":[{"version":"8675e47cca81f36594083a7e63379bac9e123e72","status":"affected","lessThan":"c0dfcd9494766d548178c37df0bd01cff378e1c7","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshLua.Runtime'"],"programFiles":["lib/ash_lua/runtime.ex"],"programRoutines":[{"name":"'Elixir.AshLua.Runtime':eval!/2"}],"repo":"https://github.com/ash-project/ash_lua"}],"references":[{"url":"https://github.com/ash-project/ash_lua/security/advisories/GHSA-37jv-wc37-fhcw","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82586.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82586","tags":["related"]},{"url":"https://github.com/ash-project/ash_lua/commit/c0dfcd9494766d548178c37df0bd01cff378e1c7","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":8.2,"baseSeverity":"HIGH","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-424","description":"CWE-424 Improper Protection of Alternate Path","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-09-07T22:34:14.837Z"},"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Reachable only when an application exposes AshLua scripting (the <code>AshLua.Resource</code> / <code>AshLua.Domain</code> extensions) to callers who can submit or influence Lua scripts, and the exposed resource has attributes that are not on the exposed-field surface.</p>"},{"base64":false,"type":"text/markdown","value":"Reachable only when an application exposes AshLua scripting (the `AshLua.Resource` / `AshLua.Domain` extensions) to callers who can submit or influence Lua scripts, and the exposed resource has attributes that are not on the exposed-field surface."}],"value":"Reachable only when an application exposes AshLua scripting (the AshLua.Resource / AshLua.Domain extensions) to callers who can submit or influence Lua scripts, and the exposed resource has attributes that are not on the exposed-field surface."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_lua:*:*:*:*:*:*:*:*","versionEndExcluding":"0.2.1","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Zach Daniel / Ash Project"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"}],"impacts":[{"capecId":"CAPEC-554","descriptions":[{"lang":"en","value":"CAPEC-554 Functionality Bypass"}]}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-08T14:44:32.288129Z","id":"CVE-2026-82586","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-08T14:44:37.935Z"}}]}}}