CVE-2026-81318
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.…
Published Updated Sources: cvelistV5, EEF
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
2.1
LOW
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 2.1 | CVSS 4.0 | LOW | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-863
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /5, /1.
References
5 on the record
- github.com/ash-project/ash_sql/security/advisories/GHSA-ww8j-58rc-f8h3
vendor-advisory, related
- cna.erlef.org/cves/CVE-2026-81318.html
related
- osv.dev/vulnerability/EEF-CVE-2026-81318
related
- github.com/ash-project/ash_sql/commit/dd092ed273dec7bd2194352f24a39229fc8ae68b
related
- github.com/ash-project/ash_sql/commit/3d95478cc9e1d5bfaf6144fe9b9793f29e5ab889
patch
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-54253 Adobe Experience Manager | Incorrect Authorization (CWE-863)CVSS 10.0 · CISA KEV
- CVE-2026-123218 IBM Aspera Faspex Authorization BypassCVSS 9.8 · CISA KEV
- CVE-2024-45519 Synacor Zimbra Collaboration Suite (ZCS) Command Execution VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-38856 Apache OFBiz Incorrect Authorization VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2023-38035 Ivanti Sentry Authentication Bypass VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2023-22518 Atlassian Confluence Data Center and Server Improper Authorization VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- Ash Projectevery CVE for this vendor
- CWE-863other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.