llamaCVEVulnerability Intelligence
/
pgEdge Postgres MCP

CVE-2026-126197

pgEdge Postgres MCP injection of SQL via custom pl-do tool parameters

A low-privilege attacker can bypass read-only mode and read or change data the database role can reach.

Solo en configuraciones específicasParche disponibleSQL injection
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: ninguna · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión1.1.0
Exposición8 dDesde la divulgación, 12 nov 2026, 12:29 p. m.
Detección2 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
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada +2
Fuente: OSV
Verificada
12 nov 26
13 nov 26
16 nov 26
21 nov 26
12 nov 26
14 nov 26
17 nov 26
19 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-126197 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 Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 12 nov 2026

The pgEdge Postgres MCP Server, in versions before 1.1.0, lets an attacker who has low-privilege access send crafted tool arguments over the network and inject SQL into custom pl-do tools, which can bypass read-only mode and read or change data the connecting database role can reach. The flaw only affects deployments that define at least one pl-do custom tool.

Affects pgEdge Postgres MCP Server 1.0.0 and earlier, including alpha and beta pre-releases, in deployments that define a custom tool of type pl-do. CVSS scores it 8.8 High. Fixed in 1.1.0.

¿Qué significa?Parameters passed to custom pl-do tools can inject SQL, which runs as the connecting database role. That can include transaction control that bypasses read-only mode, and reading or modifying anything that role can reach.
¿Quién está afectado?Versions 1.0.0 and earlier, including alpha and beta pre-releases, are affected, but only in deployments that define at least one custom tool of type pl-do. To check, review the server's custom tool configuration for pl-do tools and confirm the installed version.
¿Qué hacer?Upgrade pgedge-postgres-mcp to 1.1.0 or later, which is the fixed version.
Descripción original del registro (GitHub_M)

pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, custom pl-do tools interpolated JSON arguments into a PostgreSQL DO block delimited by fixed dollar-quote tags. An argument containing $mcp_custom_tool$ could terminate the block and inject arbitrary SQL statements, while $mcp_args$ could inject procedural code into a plpgsql block. Because the statement used the simple query protocol, injected text could include additional statements and transaction control, bypassing read_only and accessing data or modifying resources available to the connecting role. The issue requires at least one pl-do custom tool; sql and pl-func tools pass arguments as bind parameters and are not affected by this injection mechanism. This issue is fixed in 1.1.0.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Deployment defines at least one custom tool of type pl-do“defines at least one custom tool of type pl-do”
02
Version 1.0.0 or earlier, including alpha and beta pre-releases“Who is affected: any deployment of pgEdge Postgres MCP Server at 1.0.0”
¿Quién debe revisar?Teams running pgEdge Postgres MCP Server 1.0.0 or earlier with at least one custom pl-do tool defined, including alpha and beta builds.
No protegeUpgrading alone is not enough; the advisory says more action is needed.
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
Score de explotaciónQué tan fácil y probable es que la exploten
8.3/ 10Alto
Vector 8.3 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
pgedge-postgres-mcp< 1.1.0
1.1.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pgedge-postgres-mcp
Corregida 1.1.0 — —
Versiones corregidas1.1.0
Explotación

Arsenal público

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

Referencias
Fabricantehttps://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9
Otrahttps://github.com/pgEdge/pgedge-postgres-mcp/pull/196
Otrahttps://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868
Otrahttps://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0

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