Intel

AIKIDO-2026-803668

ash_sql is vulnerable to Incorrect Authorization

Incorrect AuthorizationCVE-2026-81316 Published Yesterday

21

Low Risk

This Affects:

ELIXIRash_sql
0.0.1 - 0.7.0
Fixed in 0.7.1
Are you affected? Scan for Free

TL;DR

The different_queries?/2 helper in lib/aggregate.ex decides whether two same-named aggregates are distinct before deduplication. It combines the filter and sort comparisons with && instead of ||, so two aggregates that differ only by their filter are treated as identical. The subsequent Enum.uniq_by/2 on name then discards the more restrictive aggregate and returns the value computed by the broader one, leaking rows that a tenancy or authorization filter should have excluded. The fix compares filters and sorts so aggregates that differ by either are kept distinct.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your resource defines multiple same-named aggregates that differ only by their filter.

Background info

ash_sql is vulnerable to Incorrect Authorization in versions 0.0.1 - 0.7.0.

How to fix this

Upgrade the ash_sql library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform