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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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.
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.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pgedge-postgres-mcp |
Corregida | 1.1.0 | — | — |
1.1.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9https://github.com/pgEdge/pgedge-postgres-mcp/pull/196https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
