CVE-2026-126197: fallo de gravedad alta en pgedge-postgres-mcp
pgEdge Postgres MCP Server SQL injection through custom pl-do tool parameters
Publicada el · Actualizada el
Aviso por correo cuando entre en el KEV, tenga PoC pública o suba de nota.
21Vexday Risk Score
Sin señal de explotación. Ningún artefacto público de explotación conocido hasta ahora.
ssvc Trackcvss 8.8epss 0.4%
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Productos afectados
pgEdge · pgedge-postgres-mcpCVEs relacionadas — pgedge-postgres-mcp
En el mismo producto, de las más peligrosas a las menos.
CVE-2026-125321MEDIUMpgEdge Postgres MCP Server login rate limiting can be evaded by a caller-supplied headerEPSS 0.5%CVE-2026-126196HIGHpgEdge Postgres MCP Server read-only mode can be bypassed by SQL statement smuggling through query_databaseEPSS 0.4%CVE-2026-125322MEDIUMpgEdge Postgres MCP Server SQL injection in the count_rows where parameterEPSS 0.3%CVE-2026-126198LOWpgEdge Postgres MCP Server custom tools performed writes without user confirmationEPSS 0.3%CVE-2026-126199MEDIUMpgEdge Postgres MCP Server write confirmation skipped for writes that begin with a reading keywordEPSS 0.2%CVE-2026-125320MEDIUMpgEdge Postgres MCP Server did not validate the Origin header, allowing DNS rebindingEPSS 0.1%
Referencias
https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868https://github.com/pgEdge/pgedge-postgres-mcp/pull/196https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9