Home / ash-project / ash_sql / CVE-2026-81318
CVE-2026-81318: is it exploited, and which versions of ash-project ash_sql are affected and fixed?
CVE-2026-81318 is an incorrect authorization vulnerability in ash-project ash_sql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). Affected: ash_sql from 0.1.0 before 0.7.1 (CVE record by EEF). Fixed in 0.7.1 (CVE record by EEF). Severity: Low (2.1, CVSS 4.0, from EEF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 19, 2026, 08:49 UTC and NVD November 19, 2026, 10:04 UTC.
What is CVE-2026-81318?
Distinct-query aggregate drops the tenant schema prefix, leaking across tenants in AshSql
Incorrect Authorization vulnerability in ash-project ash_sql allows a caller in a schema-based multitenant application to receive aggregate values computed from another tenant's rows. When an aggregate is computed over a distinct query, AshSql.AggregateQuery.add_single_aggs/5 rebuilds the outer query from query.from.source alone, which is only the {table, schema} tuple and does not carry query.prefix or query.from.prefix. For strategy(:context) multitenancy those hold the tenant schema, so the rebuilt outer query reads the repo's default schema while the inner correlated subquery still reads the tenant schema, and the two are joined only on primary key. The aggregate, and any relationship join added off the prefix-less binding, is then computed against the wrong tenant's rows. The neighbouring limit and exists branches instead wrap the query with subquery/1, which preserves the prefix. This issue affects ash_sql: from 0.1.0 before 0.7.1.
From the CVE record by EEF, last updated November 19, 2026, 08:40 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ash-project | ash_sql | from 0.1.0 before 0.7.1 | 0.7.1 |
| ash-project | ash_sql ash-project/ash_sql | not stated |
As the CVE record by EEF states it, last updated November 19, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-81318?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.1 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | EEF |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-81318 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, August 31, 2026)
- EPSS
- 0.18% probability of exploitation activity in the next 30 days, percentile 8.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-863 Incorrect Authorization
Where are the vendor advisories and references?
- https://github.com/ash-project/ash_sql/security/advisories/GHSA-ww8j-58rc-f8h3 vendor-advisory, related
- EEF CNA record for CVE-2026-81318 related
- OSV record EEF-CVE-2026-81318 related
- Introducing commit dd092ed in ash-project/ash_sql related
- Fix commit 3d95478 in ash-project/ash_sql patch
Who found and reported it?
- Peter Ullrich (finder)
- Peter Ullrich (reporter)
- Jonatan Männchen / EEF (coordinator)
- Zach Daniel / Ash Project (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- August 30, 2026
- Published
- August 30, 2026, 11:56 UTC
- CVE record updated
- November 19, 2026, 08:40 UTC by EEF
- NVD
- Deferred, last modified November 19, 2026, 09:18 UTC
- Last checked
- CVE list November 19, 2026, 08:49 UTC; NVD November 19, 2026, 10:04 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect ash_sql?
- Aug 30, 2026CVE-2026-77454 ash-project ash_sql: incorrect authorization
- Aug 30, 2026CVE-2026-81316 ash-project ash_sql: incorrect authorization
- Aug 30, 2026CVE-2026-78691 ash-project ash_sql: improper Neutralization of Special Elements in Data Query Logic
- Aug 30, 2026CVE-2026-80227 ash-project ash_sql: incorrect comparison
Questions about CVE-2026-81318
Is CVE-2026-81318 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.18% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of ash-project ash_sql are affected by CVE-2026-81318?
ash_sql from 0.1.0 before 0.7.1, per the CVE record by EEF. The tables above give every range the sources list.
Which version fixes CVE-2026-81318?
0.7.1, per the CVE record by EEF. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-81318?
Low (2.1, CVSS 4.0, from EEF). The severity table above shows each score with its source.
Where is the official record of CVE-2026-81318?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.