CVE-2026-78699
rename_tenant returns :ok on a failed rename, enabling cross-tenant access in AshPostgres
Check your servers for CVE-2026-78699
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-78699 affects ash_postgres, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.77% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 1 Sep 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-252 Unchecked Return Value
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
ash_postgres
package
ash_postgres |
affected from 0.25.0, before 2.13.0
Other versions: unaffected
|
|
ash_postgres
package
ash-project/ash_postgres |
affected from 03510dae24020e302558ef947be7ea874a9ce756, before 8544ab15fe45784553c2d2da8ee1a388eee0174b
Other versions: unaffected
|
Is my server affected?
Find the installed version of ash_postgres and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i ash_postgres
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-78699 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-78699RHEL, Rocky, Alma, Fedora
rpm -q ash_postgres
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-78699Alpine
apk list --installed | grep -i ash_postgresWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-78699
trivy image --scanners vuln IMAGE | grep CVE-2026-78699
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 8544ab1 in ash-project/ash_postgres github.com · patch
Exploits and proof of concept
- https://github.com/ash-project/ash_postgres/security/advisories/GHSA-6fqq-j9c4-5766 github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-78699 cna.erlef.org · related
- OSV record EEF-CVE-2026-78699 osv.dev · related
- Introducing commit 03510da in ash-project/ash_postgres github.com · related
Source: the record CVE-2026-78699 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse