AIDB: the MCP endpoint accepted any password for a Postgres superuser
AIDB's MCP endpoint proved a caller's password by opening a Postgres connection that Postgres itself never asked a password for.
· EDB · Research by kta1kri
CVE-2026-141488 let anyone who could reach AIDB's MCP endpoint run SQL as a Postgres superuser with any password, wherever pg_hba.conf used peer, trust or ident. EDB fixed it from AIDB 7.9.0.
01What happened
EDB published CVE-2026-141488 on 3 December 2026, an authentication bypass in the edb-endpoints MCP endpoint shipped with AIDB. A researcher using the handle kta1kri reported it through EDB's Vulnerability Disclosure Program. EDB fixed it from AIDB 7.9.0, which now checks how Postgres admitted each connection before running any caller SQL.
02How it works
The MCP endpoint authenticated every HTTP request by opening a Postgres connection with the caller's HTTP Basic username and password. That connection always originates on the database host over the Unix socket, as the operating system user running Postgres, so a pg_hba.conf line using peer, trust or ident admits it whatever password arrived. The endpoint then treated the request as authenticated and ran the caller's SQL through execute_sql and the other tools in its catalog. Packaged installs often carry peer lines for superuser roles.
03Who is affected
AIDB 7.7.0 through 7.8.0 are exposed where the MCP endpoint is switched on and a matching non-password pg_hba.conf line exists. EDB Postgres AI Agent Factory for AWS Marketplace 1.0 through 1.3 is the sharper case: it ships AIDB 7.8.0 with MCP already enabled and a local peer line for the enterprisedb superuser, so any password works. Hybrid Manager and CloudNativePG images include AIDB but leave MCP off.
04What to do
Upgrade to AIDB 7.10.0 with the latest minor Postgres release, or to 7.9.0 if you must stay on an earlier minor. First give every role your MCP clients use a password and switch the matching pg_hba.conf lines to a password method such as scram-sha-256, or all tool calls will fail after the upgrade. Until then, disable the endpoint.
Questions people ask
- Is my AIDB install exposed to CVE-2026-141488 by default?
- Probably not. EDB says the AIDB MCP endpoint is off by default, controlled by the edb.endpoints_mcp_enabled setting, and binds only to the loopback address. Exposure needs the endpoint switched on plus a pg_hba.conf line using peer, trust or ident that matches its connections. EDB Postgres AI Agent Factory for AWS Marketplace 1.0 through 1.3 is the exception, shipping with the endpoint enabled.
- What can an attacker do with the AIDB MCP endpoint bypass?
- Run SQL as any role a non-password pg_hba.conf line admits. EDB warns that packaged installs often carry peer lines for superusers such as postgres or enterprisedb, so an attacker could read or change all data and run operating system commands as the Postgres service account. Reachability sets the audience, since loopback-only binding limits it to local users.
- What breaks when I upgrade AIDB to fix CVE-2026-141488?
- Tool calls fail if roles have no password. EDB warns that from AIDB 7.9.0 the endpoint closes any connection Postgres admitted without checking a password, so every role your MCP clients use needs a password and a matching scram-sha-256 line first. AIDB 7.9.0 also requires PostgreSQL 16 or later, and 7.10.0 loads only on the latest minor release.
- How do I mitigate CVE-2026-141488 without upgrading AIDB?
- Switch the endpoint off. EDB's first mitigation is setting edb.endpoints_mcp_enabled to off and reloading the configuration. Otherwise remove the peer, trust and ident lines that match endpoint connections so every role must supply a password, planning admin access first, and restrict network access to port 8765 to trusted MCP clients.
Sources 3 links, all fetched
- 1enterprisedb.comEDB Advisory
- 2github.comGitHub Advisory
- 3enterprisedb.comAIDB 7.9.0 Notes