Skip to content
FlawDB
Sign in

CVE-2026-128360

LOW 2.1

Aggregates given a tenant are read in the enclosing query's tenant, leaking across tenants in AshSql

Mitigation

  • Upgrade ash_sql to 0.9.1 or later.
  • Upgrade ash_sql to 3bc558e984379448ede1db615ce16faea7e313e8 or later.
  • Vendor workaround: Set the tenant on the read (Ash.Query.set_tenant/2 or the tenant option of the read) instead of on the aggregate, so that both are read in the same tenant. Aggregates that have to be read in different tenants can be run as separate reads, one per tenant.

Who should check

  • Anyone running ash-project ash_sql >= 0.1.0, < 0.9.1
  • Anyone running ash-project ash_sql >= dd092ed273dec7bd2194352f24a39229fc8ae68b, < 3bc558e984379448ede1db615ce16faea7e313e8

Vulnerability facts

Affected
ash-project ash_sql >= 0.1.0, < 0.9.1; ash-project ash_sql >= dd092ed273dec7bd2194352f24a39229fc8ae68b, < 3bc558e984379448ede1db615ce16faea7e313e8
Fixed in
ash-project ash_sql 0.9.1, ash-project ash_sql 3bc558e984379448ede1db615ce16faea7e313e8
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
2.1 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
CWE
CWE-863
Published
Modified

Description

Incorrect Authorization vulnerability in ash_sql allows a caller in a multitenant application to receive aggregate values computed from another tenant's rows. An aggregate can be given a tenant with the tenant option of Ash.Query.aggregate/5. AshSql.Aggregate.Lateral.add_aggregates/6 read only part of such an aggregate in that tenant. A field that is an aggregate or calculation, and what the aggregate's filter and sort refer to, were read in the tenant of the enclosing query, and with no tenant on that query they were read across every tenant. Aggregates over the same relationship were grouped into one lateral join without regard to their tenants, and with strategy(:context) multitenancy the aggregate was read in the schema of the enclosing query. This issue affects ash_sql: from 0.1.0 before 0.9.1.

Affected and fixed versions

Package / productAffectedFixedSource
ash-project ash_sql>= 0.1.0, < 0.9.1—cvelist
ash-project ash_sql>= dd092ed273dec7bd2194352f24a39229fc8ae68b, < 3bc558e984379448ede1db615ce16faea7e313e8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-128360. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-128360.md
Affected: ash-project ash_sql >= 0.1.0, < 0.9.1; ash-project ash_sql >= dd092ed273dec7bd2194352f24a39229fc8ae68b, < 3bc558e984379448ede1db615ce16faea7e313e8
Fixed in: ash-project ash_sql 0.9.1, ash-project ash_sql 3bc558e984379448ede1db615ce16faea7e313e8

Steps:
1. Search this machine and project for ash-project ash_sql: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-128360 being exploited?

There is no confirmed exploitation: CVE-2026-128360 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-128360?

Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-128360?

ash-project ash_sql >= 0.1.0, < 0.9.1; ash-project ash_sql >= dd092ed273dec7bd2194352f24a39229fc8ae68b, < 3bc558e984379448ede1db615ce16faea7e313e8.

Is there a fix for CVE-2026-128360?

Yes. Fixed in ash-project ash_sql 0.9.1, ash-project ash_sql 3bc558e984379448ede1db615ce16faea7e313e8. Upgrade ash_sql to 0.9.1 or later. Upgrade ash_sql to 3bc558e984379448ede1db615ce16faea7e313e8 or later. Vendor workaround: Set the tenant on the read (Ash.Query.set_tenant/2 or the tenant option of the read) instead of on the aggregate, so that both are read in the same tenant. Aggregates that have to be read in different tenants can be run as separate reads, one per tenant.

How do I check if I'm affected by CVE-2026-128360?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 5.9CVE-2026-140867

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
MEDIUM 5.9CVE-2026-137159

Atomic bulk update and destroy in Ash skip the read policies of related records in the filter, disclosing them through which rows change

ash-project
EPSS 9%
HIGH 7.4CVE-2026-135701

A runtime policy check in Ash decides on attributes it was not given, after a narrowed select or on an update or destroy

ash-project
EPSS 9%
HIGH 7.4CVE-2026-126333

forbid_if and authorize_unless in Ash allow exactly the records a runtime check should forbid

ash-project
EPSS 9%
LOW 2.1CVE-2026-120299

Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types

ash-project
EPSS 18%
Sponsors