# GHSA-GR2R-F49C-9GM2: Incorrect Authorization vulnerability in ash-project ash\_postgres allows a user to load destination records linked to a source record only through another tenant's join rows

- Database: GitHub
- Severity: CVSS 6.0 (Medium)
- Published: 2026-10-25
- Modified: 2026-10-25

## Tracked as

- [CVE-2026-115627](https://cve.now/CVE-2026-115627.md): Incorrect Authorization vulnerability in ash-project ash\_postgres allows a user to load destination records linked to a source record only through another tenant's join rows

## Affected versions

- ash\_postgres (Hex): from 0.38.0, fixed in 2.15.2

## Description

Incorrect Authorization vulnerability in ash-project ash_postgres allows a user to load destination records linked to a source record only through another tenant's join rows.

When a `many_to_many` relationship, or a `through` relationship, is loaded with a lateral join (for example with a per-record limit or sort), `AshPostgres.DataLayer` builds the query for the join resource, and for each resource along a `through` path, in `lateral_join_query/3` and `through_step_queries/4` without running that resource's read action, which is where attribute multitenancy is applied. When those resources use `strategy :attribute` multitenancy, rows belonging to other tenants were joined, so the load returned destination records that the caller's tenant is not related to.

### Configurations

Reachable when the join resource of a `many_to_many` relationship, or a resource along a `through` path, uses attribute multitenancy and holds rows from several tenants, and the relationship is loaded with a lateral join (for example with a limit, offset or sort on the relationship).

### Patches

Fixed in ash_postgres 2.15.2.

## References

- https://github.com/ash-project/ash/security/advisories/GHSA-gr2r-f49c-9gm2

Page: https://cve.now/GHSA-GR2R-F49C-9GM2

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
