CVE-2026-141488: AIDB MCP endpoint authentication bypass through pg_hba.conf methods that do not check a password
The AIDB MCP endpoint (edb-endpoints) in AIDB 7.7.0 through 7.8.0 authenticates HTTP Basic credentials by opening a Postgres connection with them, always from the database host over the local Unix socket as the operating system user that runs Postgres. When a pghba.conf line matching that connection uses a method that does not check a password, such as peer, trust or ident, the connection succeeds with any password. A client that can reach the endpoint can then run SQL as the admitted role. With a common packaged line such as local all postgres peer, or local all enterprisedb peer on EDB Postgres Advanced Server, that role is a superuser, which allows reading and changing all data and running operating system commands as the Postgres service account. The endpoint is disabled by default. EDB Postgres AI Agent Factory for AWS Marketplace versions 1.0 through 1.3 ship AIDB 7.8.0 with the endpoint enabled and a peer line for the enterprisedb superuser. AIDB 7.9.0 and Agent Factory 1.4 fix the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
AIDBto a version that resolves this vulnerability.Fixed in 7.10.0 - Upgrade
Upgrade
AIDBto a version that resolves this vulnerability.Fixed in 7.9.0 - Upgrade
Upgrade
EDB Postgres AI Agent Factoryto a version that resolves this vulnerability.Fixed in 1.4 - Configuration
Give MCP client roles passwords before upgrading
AIDB MCP client roles password - Configuration
Change matching pg_hba.conf lines to a password-checking method such as scram-sha-256
PostgreSQL pg_hba.conf authentication method = scram-sha-256
Event History
Frequently Asked Questions
Which deployments are exposed by default?
The AIDB MCP endpoint is disabled by default, so AIDB installations are exposed only if the endpoint has been enabled. EDB Postgres AI Agent Factory for AWS Marketplace versions 1.0 through 1.3 ship with the endpoint enabled and a peer rule for the enterprisedb superuser.
What must an attacker be able to do?
An attacker must be able to reach the AIDB MCP endpoint. If the endpoint's local Unix-socket database connection matches a pg_hba.conf method that does not validate passwords, they can supply arbitrary HTTP Basic credentials and obtain the role admitted by that rule.
How can I determine whether my configuration is vulnerable?
Check whether edb-endpoints is enabled, then identify the pg_hba.conf rule matched by a local connection from the database host using the operating-system account that runs Postgres. Rules using peer, trust, ident, or another method that does not check a password are affected; common examples are local all postgres peer and local all enterprisedb peer.
What is the impact when the matched role is a superuser?
A client reaching the endpoint can run SQL as that role. If the admitted role is the postgres or enterprisedb superuser, the attacker can read and modify all data and run operating-system commands as the Postgres service account.
What can be done if an immediate upgrade is not possible?
Disable the AIDB MCP endpoint or prevent untrusted clients from reaching it. Also review the matching local pg_hba.conf rule and avoid authentication methods that do not validate a password for the endpoint's database connection.