Skip to content
High 8.8

pgEdge Postgres MCP Serverに任意のSQLを注入される脆弱性

CVE-2026-126197 First seen on SecPulse

Summary

pgEdge Postgres MCP ServerのカスタムツールでSQL注入が可能な脆弱性です。1.1.0より前のバージョンが影響を受け、読み取り専用の設定を回避して、接続先のデータベースに登録されたデータへのアクセスや変更が行われるおそれがあります。対策として1.1.0への修正版へのアップデートをおすすめします。少なくとも1つのpl-doカスタムツールを使っている環境が対象で、CVSSは8.8です。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

pgEdge Postgres MCP ServerのカスタムツールでSQL注入が可能な脆弱性です。1.1.0より前のバージョンが影響を受け、読み取り専用の設定を回避して、接続先のデータベースに登録されたデータへのアクセスや変更が行われるおそれがあります。対策として1.1.0への修正版へのアップデートをおすすめします。少なくとも1つのpl-doカスタムツールを使っている環境が対象で、CVSSは8.8です。

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details