CVE-2026-81318
Last modified
CVE-2026-81318 is a low-severity vulnerability rated 2.1/10 on the CVSS scale. 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. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| ash-project | ash_sql | >= 0.1.0, < 0.7.1 |
| ash-project | ash_sql | >= dd092ed273dec7bd2194352f24a39229fc8ae68b, < 3d95478cc9e1d5bfaf6144fe9b9793f29e5ab889 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-81318?
How severe is CVE-2026-81318?
How do I fix CVE-2026-81318?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-81302PALLET CONTROL products contain an incorrect default permiss…8.5
- CVE-2026-81303A flaw was found in hawtio-operator. The operator holds rout…6.3
- CVE-2026-81305CM2507 IP cameras automatically execute a predetermined scri…6.8
- CVE-2026-8131A security flaw has been discovered in SourceCodester SUP On…7.3
- CVE-2026-81315Origin Validation Error vulnerability in ash-project ash_ai …7.4
- CVE-2026-81316Incorrect Authorization vulnerability in ash-project ash_sql…2.1
- CVE-2026-81319Deserialization of Untrusted Data vulnerability in ash-proje…5.9
- CVE-2026-8132A weakness has been identified in CodeAstro Leave Management…7.3
- CVE-2026-81320A flaw was found in hawtio-operator. When a custom Route TLS…5.5
- CVE-2026-81321CM2507 IP cameras store configured wireless network credenti…9.8
- CVE-2026-81322Exposure of Sensitive Information to an Unauthorized Actor v…2.1
- CVE-2026-81326QND uses a hard-coded cryptographic key, which may allow a l…6.8
Are you affected by CVE-2026-81318?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
