# CVE-2026-78699: rename\_tenant returns :ok on a failed rename, enabling cross-tenant access in AshPostgres

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.2
- **CVSS:** 7.2 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-252
- **Published:** 2026-08-30T15:13:23.875Z
- **Modified:** 2026-11-19T09:18:01.270Z

## Who should check

- Anyone running ash-project ash\_postgres \>= 0.25.0, \< 2.13.0
- Anyone running ash-project ash\_postgres \>= 03510dae24020e302558ef947be7ea874a9ce756, \< 8544ab15fe45784553c2d2da8ee1a388eee0174b

## Description

Unchecked Return Value vulnerability in ash-project ash\_postgres allows a user who can drive a tenant rename to a name that collides with an existing tenant's schema to have their tenant record repointed at that other tenant's live schema, gaining access to its data.

AshPostgres.MultiTenancy.rename\_tenant/3 issues the ALTER SCHEMA ... RENAME TO ... with the non-raising Ecto.Adapters.SQL.query/2, discards its {:ok, \_} \| {:error, \_} result, and unconditionally returns :ok. PostgreSQL rejects the rename when the target schema already exists (and on insufficient privilege or lock timeout), but that failure never reaches the caller. The calling manage\_tenant update action therefore sees success and commits the tenant row with the new name, which is the schema of a different existing tenant, so subsequent reads and writes for that tenant run against the other tenant's data.

This issue affects ash\_postgres: from 0.25.0 before 2.13.0.

## Affected and fixed versions

- ash-project ash\_postgres: \>= 0.25.0, \< 2.13.0 (cvelist)
- ash-project ash\_postgres: \>= 03510dae24020e302558ef947be7ea874a9ce756, \< 8544ab15fe45784553c2d2da8ee1a388eee0174b (cvelist)

## Mitigation

- Upgrade ash\_postgres to 2.13.0 or later.
- Upgrade ash\_postgres to 8544ab15fe45784553c2d2da8ee1a388eee0174b or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-78699.md
Affected: ash-project ash_postgres >= 0.25.0, < 2.13.0; ash-project ash_postgres >= 03510dae24020e302558ef947be7ea874a9ce756, < 8544ab15fe45784553c2d2da8ee1a388eee0174b
Fixed in: ash-project ash_postgres 2.13.0, ash-project ash_postgres 8544ab15fe45784553c2d2da8ee1a388eee0174b

Steps:
1. Search this machine and project for ash-project ash_postgres: 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.
```

## FAQ

### Is CVE-2026-78699 being exploited?

There is no confirmed exploitation: CVE-2026-78699 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-78699?

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

### Which versions are affected by CVE-2026-78699?

ash-project ash\_postgres \>= 0.25.0, \< 2.13.0; ash-project ash\_postgres \>= 03510dae24020e302558ef947be7ea874a9ce756, \< 8544ab15fe45784553c2d2da8ee1a388eee0174b.

### Is there a fix for CVE-2026-78699?

Yes. Fixed in ash-project ash\_postgres 2.13.0, ash-project ash\_postgres 8544ab15fe45784553c2d2da8ee1a388eee0174b. Upgrade ash\_postgres to 2.13.0 or later. Upgrade ash\_postgres to 8544ab15fe45784553c2d2da8ee1a388eee0174b or later.

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

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.

## References

- vendor: <https://github.com/ash-project/ash_postgres/security/advisories/GHSA-6fqq-j9c4-5766>
- patch: <https://github.com/ash-project/ash_postgres/commit/03510dae24020e302558ef947be7ea874a9ce756>
- patch: <https://github.com/ash-project/ash_postgres/commit/8544ab15fe45784553c2d2da8ee1a388eee0174b>
- other: <https://cna.erlef.org/cves/CVE-2026-78699.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-78699>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-78699>

HTML: <https://flawdb.com/CVE-2026-78699> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-78699>
