CVE-2026-55769: CloudNativePG: Overriding operators can lead to privilege escalation in CloudNativePG for SQL queries without a fixed `search_path`

Published Aug 20, 2026
·
Updated

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 searchpath 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 searchpath, causing instance-manager introspection queries such as SELECT COUNT() > 0 FROM pgcatalog.pgextension 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.usersearch 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.

Affected Software

1 affected component
CloudNativePG CloudNativePG>1.28.3<=1.28.4, >1.29.1<=1.29.2, <1.30.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade CloudNativePG to a version that resolves this vulnerability.

    Fixed in 1.28.4
  2. Upgrade

    Upgrade CloudNativePG to a version that resolves this vulnerability.

    Fixed in 1.29.2
  3. Upgrade

    Upgrade CloudNativePG to a version that resolves this vulnerability.

    Fixed in 1.30.0

Event History

Aug 20, 2026
CVE Published
via MITRE·09:41 PM
Data Sourced
via MITRE·09:41 PM
DescriptionWeakness

Frequently Asked Questions

1

Which database roles can exploit this issue?

A role that holds DATABASE OWNER can exploit the issue by creating overloaded built-in operators in the public schema and changing the database or role search_path.

2

What level of access can successful exploitation provide?

Successful exploitation can cause attacker-controlled functions to run as the PostgreSQL postgres superuser. This can lead to PostgreSQL superuser access, operating system command execution through COPY ... FROM PROGRAM, and access to the pod ServiceAccount token.

3

Are deployments using the public.user_search SECURITY DEFINER function affected?

Yes. The same search_path trust issue affected the public.user_search SECURITY DEFINER function, as well as direct sql.Open("pgx", ...) callsites.

4

Which releases contain the fix?

The issue is fixed in CloudNativePG 1.28.4, 1.29.2, and 1.30.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203