CVE-2026-140867

my.netkarin.net
جزئیات آسیب‌پذیری
CVE-2026-140867 متوسط CVSS 5.9
Aggregate ها در Ash در چند مسیر query، read policy رکوردهایی که می خوانند را نادیده می گیرند و باعث افشای count و مقادیر رکوردهای مخفی می شوند
Aggregates in Ash skip the read policies of the records they read on several query paths, disclosing counts and values of hidden records
فروشنده: Ash-project
تاریخ انتشار: 2026-12-04 06:18:11
Ash

توضیح (فارسی)

آسیب پذیری Incorrect Authorization در Ash به یک actor اجازه می دهد تا با استفاده از aggregate، count، sum و مقادیر attribute رکوردهای مرتبطی را که مجاز به خواندن آنها نیست، بخواند.

Ash.Actions.Read (lib/ash/actions/read/read.ex) یک aggregate را در دو مرحله authorize می کرد. Ash.Filter.relationship_filters/7 برای هر relationship که مشاهده می کرد یک aggregate در حال خواندن آن است، یک policy filter می ساخت و authorize_aggregate/11 هر filter را lookup می کرد و در صورتی که none پیدا می کرد، هیچ filter را اعمال نمی کرد. در نتیجه aggregate ای که مرحله اول به آن نمی رسید، بدون read policy مقصد خود اجرا می شد. این حالت شامل aggregate یا calculation ارایه شده به عنوان field: در Ash.aggregate/3، aggregate های داخل یک calculation که به عنوان field یک aggregate استفاده شده است، aggregate در filter، sort یا join filter یک aggregate دیگر، و aggregate در یک combination یا در sort یک atomic bulk update یا destroy می شود. همچنین Ash.count/2، Ash.exists/2 و Ash.aggregate/3 یک read policy که بر مبنای رکوردها تصمیم گیری می شود را نادیده می گرفتند و aggregate ای که از این مسیرها روی یک resource چند مستأجر (multitenant) به دست می آمد، به هیچ tenant نیاز نداشت.

این مشکل ash را از نسخه 2.17.22 تا قبل از 3.39.1 تحت تاثیر قرار می دهد.

Original description (English)

Incorrect authorization vulnerability in Ash allows an actor to read counts, sums and attribute values of related records they cannot read via aggregates.

Ash.Actions.Read (lib/ash/actions/read/read.ex) authorized an aggregate in two passes. Ash.Filter.relationship_filters/7 built a policy filter for each relationship it found an aggregate reading, and authorize_aggregate/11 looked each filter up and applied none when it found none. An aggregate the first pass did not reach ran without its destination's read policy. That covered an aggregate or calculation given as the field: of Ash.aggregate/3, the aggregates inside a calculation used as an aggregate's field, an aggregate in another aggregate's filter, sort or join filter, and an aggregate in a combination or in the sort of an atomic bulk update or destroy. Ash.count/2, Ash.exists/2 and Ash.aggregate/3 also ignored a read policy that is decided against the records, and an aggregate reached on these paths over a multitenant resource required no tenant.

This issue affects ash: from 2.17.22 before 3.39.1.

5.9 امتیاز CVSS
1.0٪ احتمال بهره‌برداری (EPSS)
— تاریخ گزارش بهره‌برداری
— تاریخ ثبت در CISA