# CVE-2026-78216: AshLua eval read operations can read field-policy-protected fields via aggregates

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.0
- **CVSS:** 6.0 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.43% (percentile 29, 2026-11-26)
- **CWE:** CWE-1220
- **Published:** 2026-09-08T16:42:20.908Z
- **Modified:** 2026-11-19T08:31:55.355Z

## Who should check

- Anyone running ash-project ash\_lua \>= 0.1.0, \< 0.2.2
- Anyone running ash-project ash\_lua \>= 8675e47cca81f36594083a7e63379bac9e123e72, \< 266a5dcc56d5015b6d316c10606169e753b07450

## 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.

Ash 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.

The 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.

This issue affects ash\_lua: from 0.1.0 before 0.2.2.

## Affected and fixed versions

- ash-project ash\_lua: \>= 0.1.0, \< 0.2.2 (cvelist)
- ash-project ash\_lua: \>= 8675e47cca81f36594083a7e63379bac9e123e72, \< 266a5dcc56d5015b6d316c10606169e753b07450 (cvelist)

## Mitigation

- Upgrade ash\_lua to 0.2.2 or later.
- Upgrade ash\_lua to 266a5dcc56d5015b6d316c10606169e753b07450 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-78216. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-78216.md
Affected: ash-project ash_lua >= 0.1.0, < 0.2.2; ash-project ash_lua >= 8675e47cca81f36594083a7e63379bac9e123e72, < 266a5dcc56d5015b6d316c10606169e753b07450
Fixed in: ash-project ash_lua 0.2.2, ash-project ash_lua 266a5dcc56d5015b6d316c10606169e753b07450

Steps:
1. Search this machine and project for ash-project ash_lua: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-78216 being exploited?

There is no confirmed exploitation: CVE-2026-78216 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-78216?

Medium: CVSS 6.0 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-78216?

ash-project ash\_lua \>= 0.1.0, \< 0.2.2; ash-project ash\_lua \>= 8675e47cca81f36594083a7e63379bac9e123e72, \< 266a5dcc56d5015b6d316c10606169e753b07450.

### Is there a fix for CVE-2026-78216?

Yes. Fixed in ash-project ash\_lua 0.2.2, ash-project ash\_lua 266a5dcc56d5015b6d316c10606169e753b07450. Upgrade ash\_lua to 0.2.2 or later. Upgrade ash\_lua to 266a5dcc56d5015b6d316c10606169e753b07450 or later.

### How do I check if I'm affected by CVE-2026-78216?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ash-project/ash_lua/security/advisories/GHSA-5whv-8rcp-x33j>
- patch: <https://github.com/ash-project/ash_lua/commit/8675e47cca81f36594083a7e63379bac9e123e72>
- patch: <https://github.com/ash-project/ash_lua/commit/266a5dcc56d5015b6d316c10606169e753b07450>
- other: <https://cna.erlef.org/cves/CVE-2026-78216.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-78216>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-78216>

HTML: <https://flawdb.com/CVE-2026-78216> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-78216>
