llamaCVEVulnerability Intelligence
/
ash_postgres

CVE-2026-78699

rename_tenant returns :ok on a failed rename, enabling cross-tenant access in AshPostgres

Specific setups onlyParche disponibleunchecked return value
Descargar PNG JSON
CVSS 4.0
7.2
Alta
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 Fuente: CNA
ExplotaciónPoC públicaSSVC: poc · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión2.13.0
Exposición80 dDesde la divulgación, 30 ago 2026, 10:13 a. m.
Detección78 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Remediación
Monitoreo
Detectada
Verificada
30 ago 26
1 sept 26
17 nov 26
19 nov 26
30 ago 26
19 sept 26
10 oct 26
30 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-78699 divulgada · CVSS 7.2 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Monitoreo Detectada Ingresó al índice
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

Affects ash_postgres 0.25.0 up to 2.13.0 in applications running schema-based multitenancy with a user-driven tenant rename, where users choose the new tenant name. Fixed in 2.13.0.

¿Qué significa?rename_tenant returns :ok even when the rename fails. A user can then have their tenant record repointed at another existing tenant's schema and gain access to that tenant's data.
¿Quién está afectado?ash_postgres versions from 0.25.0 before 2.13.0 are affected, in applications that run schema-based multitenancy with a user-driven tenant rename. To check, look at the ash_postgres version in the project's mix.lock file.
¿Qué hacer?Upgrade ash_postgres to 2.13.0.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Application runs ash_postgres schema-based multitenancy with a user-driven tenant rename, letting a user choose a new tenant name.“An application must run ash_postgres schema-based multitenancy with a user-driven tenant rename”
02
Affected ash_postgres versions are 0.25.0 up to but not including 2.13.0.“This issue affects ash_postgres: from 0.25.0 before 2.13.0.”
¿Quién debe revisar?Teams running ash_postgres 0.25.0 before 2.13.0 with schema-based multitenancy and user-driven tenant renames, such as editable org slugs or subdomains.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:L
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
ash_postgres≥ 0.25.0 < 2.13.0
0.25.0
2.13.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
ash_postgres
Corregida 2.13.0 — —
Versiones corregidas2.13.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Registro
EscenarioGENERALEEF
configurationAn application must run ash_postgres schema-based multitenancy with a user-driven tenant rename (for example a manage_tenant update on an editable org slug or subdomain), letting a user choose a new tenant name that collides with an existing tenant's schema.EEF
Referencias
Fabricantehttps://github.com/ash-project/ash_postgres/security/advisories/GHSA-6fqq-j9c4-5766
Parchehttps://github.com/ash-project/ash_postgres/commit/8544ab15fe45784553c2d2da8ee1a388eee0174b
Otrahttps://cna.erlef.org/cves/CVE-2026-78699.html
Otrahttps://osv.dev/vulnerability/EEF-CVE-2026-78699
Otrahttps://github.com/ash-project/ash_postgres/commit/03510dae24020e302558ef947be7ea874a9ce756

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.