# 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.

- **Severity:** High: A working attack on a widely used AI product or ecosystem. A fix may exist. Patch or mitigate this week.
- **Category:** Vulnerability
- **Published by:** EDB
- **Disclosed:** 2026-12-03
- **CVE:** CVE-2026-141488
- **CVSS:** 9.2
- **Affects:** EDB AIDB, EDB Postgres AI Agent Factory
- **Research by:** kta1kri
- **Primary source:** https://www.enterprisedb.com/docs/security/advisories/cve2026141488
- **Page:** https://theinjection.dev/items/edb-aidb-mcp-endpoint-auth-bypass/

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.

## What 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.

## How 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.

## Who 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.

## What 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.

## Quick facts

- **Affected:** AIDB 7.7.0 to 7.8.0; Agent Factory for AWS 1.0 to 1.3
- **Fixed in:** AIDB 7.9.0 and later; Agent Factory 1.4
- **CVE:** CVE-2026-141488 (CWE-305)
- **Found by:** kta1kri, via EDB's disclosure program
- **Default state:** Endpoint off, bound to 127.0.0.1, port 8765
- **Disclosed:** 3 December 2026

## Questions

### 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

1. [EDB Advisory](https://www.enterprisedb.com/docs/security/advisories/cve2026141488)
2. [GitHub Advisory](https://github.com/advisories/GHSA-4p49-pvv3-2qqr)
3. [AIDB 7.9.0 Notes](https://www.enterprisedb.com/docs/aidb/latest/release-notes/7/aidb_7.9.0_rel_notes)
