Description
CloudNativePG is a platform designed to manage PostgreSQL databases within Kubernetes environments. Prior to 1.28.4 and 1.29.2, CloudNativePG opened superuser connections without pinning search_path in fillDefaultParameters in pkg/management/postgres/pool/profiles.go. A role holding DATABASE OWNER could create overloaded built-in operators in the public schema and change the database or role search_path, causing instance-manager introspection queries such as SELECT COUNT(*) > 0 FROM pg_catalog.pg_extension WHERE extname = $1 to execute attacker-controlled functions as the postgres superuser. The same trust issue affected direct sql.Open("pgx", ...) callsites and the public.user_search SECURITY DEFINER function, enabling PostgreSQL superuser access, operating system command execution through COPY ... FROM PROGRAM, and access to the pod ServiceAccount token. This issue is fixed in versions 1.28.4, 1.29.2, and 1.30.0.
Published: 2026-08-20
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

CloudNativePG allowed superuser connections without neutralizing the search_path, letting a role with DATABASE OWNER privileges create overloaded built‑in operators in the public schema or alter the search_path used by instance‑manager introspection queries. This enabled the attacker to cause these queries to execute attacker‑controlled functions as the postgres superuser, granting full superuser access, the ability to run operating system commands via COPY … FROM PROGRAM, and read the pod ServiceAccount token. The vulnerability is categorized as a privilege escalation flaw.

Affected Systems

Products affected are CloudNativePG’s cloudnative‑pg platform. All releases older than 1.28.4, 1.29.2, and 1.30.0 are vulnerable; the issue was fixed starting with those releases.

Risk and Exploitability

The CVSS score of 9.4 indicates a critical severity, and although an EPSS score is not available, the lack of a KEV listing does not reduce the high risk posed by this flaw. The attack vector relies on SQL connections from within a Kubernetes cluster where a user can control a DATABASE OWNER role. By creating overloaded operators or changing the search_path, the attacker forces the system to execute functions with superuser privileges, thus providing a clear path to compromise the PostgreSQL instance and the underlying host. The vulnerability requires no special network access beyond normal database access in the cluster, making it feasible to exploit in many real‑world CloudNativePG deployments.

Generated by OpenCVE AI on August 21, 2026 at 01:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply CloudNativePG releases 1.28.4, 1.29.2, or 1.30.0 or later, which pin the search_path during superuser sessions and remove the trust in public.user_search SECURITY DEFINER.
  • If an upgrade cannot be performed immediately, disable superuser connections that omit search_path pinning and revoke wildcard privileges on the public schema so that owners cannot overload built‑in operators.
  • Remove or restrict the public.user_search SECURITY DEFINER function, prevent COPY … FROM PROGRAM usage, reset any altered search_path settings, and drop any overloaded operators that may have been created by an attacker.

Generated by OpenCVE AI on August 21, 2026 at 01:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 01:45:00 +0000

Type Values Removed Values Added
First Time appeared Cloudnative-pg
Cloudnative-pg cloudnative-pg
Vendors & Products Cloudnative-pg
Cloudnative-pg cloudnative-pg

Thu, 20 Aug 2026 22:00:00 +0000

Type Values Removed Values Added
Description CloudNativePG is a platform designed to manage PostgreSQL databases within Kubernetes environments. Prior to 1.28.4 and 1.29.2, CloudNativePG opened superuser connections without pinning search_path in fillDefaultParameters in pkg/management/postgres/pool/profiles.go. A role holding DATABASE OWNER could create overloaded built-in operators in the public schema and change the database or role search_path, causing instance-manager introspection queries such as SELECT COUNT(*) > 0 FROM pg_catalog.pg_extension WHERE extname = $1 to execute attacker-controlled functions as the postgres superuser. The same trust issue affected direct sql.Open("pgx", ...) callsites and the public.user_search SECURITY DEFINER function, enabling PostgreSQL superuser access, operating system command execution through COPY ... FROM PROGRAM, and access to the pod ServiceAccount token. This issue is fixed in versions 1.28.4, 1.29.2, and 1.30.0.
Title CloudNativePG: Overriding operators can lead to privilege escalation in CloudNativePG for SQL queries without a fixed `search_path`
Weaknesses CWE-426
References
Metrics cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


Subscriptions

Cloudnative-pg Cloudnative-pg
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T11:20:22.436Z

Reserved: 2026-06-17T14:34:51.881Z

Link: CVE-2026-55769

cve-icon Vulnrichment

Updated: 2026-08-21T11:20:16.426Z

cve-icon NVD

Status : Received

Published: 2026-08-20T22:17:22.640

Modified: 2026-08-21T12:16:29.243

Link: CVE-2026-55769

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T01:30:05Z

Weaknesses