llamaCVEVulnerability Intelligence
/
PostgreSQL

CVE-2026-116316

PostgreSQL arbitrary SQL execution via pg_temp type planting

A low-privilege attacker on the network can run arbitrary SQL as a caller by planting a type in pg_temp.

Specific setups onlyParche disponiblesecurity flaw
Descargar PNG JSON
CVSS 3.1
8.8
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche5 versiones14.25 · 15.20 · 16.16 · 17.12 …
Exposición7 dDesde la divulgación, 12 nov 2026, 9:15 a. m.
Detección11 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Evaluación SSVC +1
Modificada
Explotación
Remediación
Monitoreo
Detectada +2
Verificada
12 nov 26
13 nov 26
16 nov 26
19 nov 26
12 nov 26
13 nov 26
15 nov 26
17 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Publicada CVE-2026-116316 divulgada · CVSS 8.8 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 12 nov 2026

PostgreSQL can be attacked over the network by a user with low-privilege access, without any action from the victim, to run arbitrary SQL as the caller of a security-restricted operation. The attacker plants a domain, enum, or range type in pg_temp that a session later uses when it runs a query with an unqualified type name.

Affects PostgreSQL 14 through 18 before the fixed releases, when a victim session runs a security-restricted operation and then a regular query with unqualified type names. Fixed in 18.7, 17.12, 16.16, 15.20, and 14.25.

¿Qué significa?A user who can create objects can place a type in a session's temporary schema during a security-restricted operation. Later queries in that session that use unqualified type names can find and use that type, which lets the object creator run arbitrary SQL as the caller of the security-restricted operation.
¿Quién está afectado?Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected. The exposure needs a session that runs a security-restricted operation and then a regular query containing an unqualified type name; check your server version with SELECT version().
¿Qué hacer?Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, matching your major version. The facts do not list a workaround.
Descripción original del registro (PostgreSQL)

Improper protection of alternate path in PostgreSQL security-restricted operations allows an object creator to execute arbitrary SQL as the operation's caller, via a domain, enum, or range type created in pg_temp. The victim session must later run a query containing an unqualified type name, e.g. "SELECT '1'::bigint"; autovacuum and other common security-restricted operation users do not do so, so they are unaffected. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Victim session runs a security-restricted operation, then a regular query with unqualified type names.“victim session runs a security-restricted operation, then a regular query with unqualified type names”
02
The victim session must later run a query containing an unqualified type name.“The victim session must later run a query containing an unqualified type name”
¿Quién debe revisar?Teams running PostgreSQL 14, 15, 16, 17 or 18 before the fixed releases 14.25, 15.20, 16.16, 17.12 or 18.7, where sessions run security-restricted operations.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
PostgreSQL< 14.25
PostgreSQL≥ 15 < 15.20
PostgreSQL≥ 16 < 16.16
PostgreSQL≥ 17 < 17.12
PostgreSQL≥ 18 < 18.7
14.25
15
15.20
16
16.16
17
17.12
18
18.7
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
PostgreSQL
Corregida 14.25, 15.20, 16.16, 17.12, 18.7 — —
Versiones corregidas14.2515.2016.1617.1218.7
Explotación

Arsenal público

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

Registro
configurationvictim session runs a security-restricted operation, then a regular query with unqualified type namesPostgreSQL
Referencias
Fabricantehttps://www.postgresql.org/support/security/CVE-2026-116316/

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