ash_sql is vulnerable to Incorrect Authorization
21
Low Risk
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.
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.
ash_sql is vulnerable to Incorrect Authorization in versions 0.0.1 - 0.7.0.
Upgrade the ash_sql library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.