Skip to main content
EPSS 0.2%top 94%

CVE-2026-81318: CWE-863 Incorrect Authorization in ash-project ash_sql

0
Low
VulnerabilityCVE-2026-81318cvecve-2026-81318cwe-863
Published: 08/30/2026 (08/30/2026, 11:56:52 UTC)
Source: CVE Database V5
Vendor/Project: ash-project
Product: ash_sql

Description

CVE-2026-81318 is an incorrect authorization vulnerability in ash-project's ash_sql library affecting versions from 0.1.0 up to but not including 0.7.1. The flaw allows a caller in a schema-based multitenant application to receive aggregate values computed from another tenant's data due to improper query rebuilding that loses tenant schema context. This results in aggregates being computed against the wrong tenant's rows. The vulnerability has a low severity score and no known exploits or official patches at this time.

CVSS v4.0

Score 2.1low

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

ash-project

ash_sql

Affected versions
>=0.1.0 <0.7.1

ash-project

ash_sql

ash_sql
pkg:hex/ash_sql
Affected versions
>=0.1.0 <0.7.1
GitHub Actionsmore threats →cve
ash-project/ash_sql
pkg:github/ash-project/ash_sql
CPE configurations
cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 15:34:43 UTC

Technical Analysis

The vulnerability arises because ash_sql's AggregateQuery.add_single_aggs/5 function rebuilds the outer query using only the {table, schema} tuple from query.from.source, omitting the tenant schema prefix stored in query.prefix or query.from.prefix. In multitenant applications using strategy(:context), this causes the rebuilt outer query to default to the repository's default schema, while the inner correlated subquery still uses the correct tenant schema. The join between these queries is only on the primary key, leading to aggregates and relationship joins being computed against data from the wrong tenant. This affects ash_sql versions >=0.1.0 and <0.7.1.

Potential Impact

An attacker or caller in a multitenant environment can obtain aggregate data from another tenant's rows, potentially exposing sensitive information across tenant boundaries. The impact is limited to aggregate values and does not include direct data modification or broader access. The CVSS 4.0 base score is 2.1, indicating low severity.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. There is no official fix or patch link provided at this time. Users of affected versions should monitor vendor communications for updates and consider mitigating by restricting access or avoiding use of aggregate queries in multitenant contexts until a fix is available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-08-30T02:30:02.111Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a941d0cacd9273b4981c0d4

Added to database: 08/30/2026, 12:07:40 UTC

Last enriched: 09/07/2026, 15:34:43 UTC

Last updated: 10/13/2026, 18:48:24 UTC

Views: 100

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses