{"id":"CVE-2026-55765","aliases":[],"summary":"CloudNativePG: Cleartext role passwords recorded in pg_stat_statements allow privileged tenant roles to recover the PostgreSQL superuser credential and achieve RCE in the database pod","published_at":"2026-08-20T21:38:47.952Z","modified_at":"2026-10-16T10:04:46Z","products":[{"slug":"cloudnative-pg","name":"CloudNativePG","category":"kubernetes-container"}],"rating":{"severity":"high","score":8.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"SUSE","rating":"important"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.004999999888241291,"percentile":0.43606001138687134,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"CloudNativePG is a platform designed to manage PostgreSQL databases within Kubernetes environments. Prior to 1.28.4 and 1.29.2, CloudNativePG embedded cleartext role passwords in `ALTER ROLE` and `CREATE ROLE` statements generated by SetUserPassword in pkg/management/postgres/utils/roles.go and appendPasswordOption in internal/management/controller/roles/postgres.go. When pg_stat_statements was preloaded with track_utility enabled and an untrusted tenant held pg_monitor or pg_read_all_stats, the tenant could recover platform-managed superuser or application-owner passwords, reconnect through enabled superuser TCP access, and execute operating system commands in the database pod with `COPY ... FROM PROGRAM`. Clusters using SCRAM-SHA-256 verifiers in managed-role Secrets were not affected. This issue is fixed in versions 1.28.4, 1.29.2, and 1.30.0.","affected_stack":[{"ecosystem":"CVE","package":"cloudnative-pg/cloudnative-pg","versions":["< 1.28.4",">= 1.29.0, < 1.29.2"],"provider":"cvelistv5","source":"CVE-2026-55765","relation":"self"}],"affected_other":[{"ecosystem":"openSUSE:Tumbleweed","package":"kubectl-cnpg","purl":"pkg:rpm/opensuse/kubectl-cnpg&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.29.2-1.1"}]}],"fixed":["1.29.2-1.1"],"provider":"osv","source":"openSUSE-SU-2026:11167-1","relation":"upstream"}],"product_status":[{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["kubectl-cnpg","kubectl-cnpg-bash-completion","kubectl-cnpg-fish-completion","kubectl-cnpg-zsh-completion"],"package_count":4,"fixed":["kubectl-cnpg-1.29.2-1.1","kubectl-cnpg-bash-completion-1.29.2-1.1","kubectl-cnpg-fish-completion-1.29.2-1.1","kubectl-cnpg-zsh-completion-1.29.2-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-55765"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"affected","packages":["odf4/ocs-client-rhel9-operator","odf4/ocs-metrics-exporter-rhel9","odf4/odf-cli-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-55765"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4","odf4/devicefinder-rhel9","odf4/mcg-rhel9-operator","odf4/ocs-rhel9-operator","odf4/odf-rhel9-operator"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-55765"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4/odf-multicluster-rhel9-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55765"}],"records":[{"provider":"csaf-suse","source_id":"openSUSE-SU-2026:11167-1","relation":"upstream","url":"https://www.suse.com/security/cve/CVE-2018-1058/","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-07-01T00:00:00Z","modified_at":"2026-07-01T00:00:00Z","summary":"kubectl-cnpg-1.29.2-1.1 on GA media","details":"kubectl-cnpg-1.29.2-1.1 on GA media\n\nThese are all security issues fixed in the kubectl-cnpg-1.29.2-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"openSUSE-SU-2026:11167-1"},{"type":"SUSE","score":"moderate","source":"openSUSE-SU-2026:11167-1"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2026/opensuse-su-2026_11167-1.json"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2018-1058/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-55765/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-55769/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2018-1058"},{"type":"WEB","url":"https://bugzilla.suse.com/1081925"},{"type":"WEB","url":"https://bugzilla.suse.com/1175193"},{"type":"WEB","url":"https://bugzilla.suse.com/1175194"},{"type":"WEB","url":"https://bugzilla.suse.com/1185814"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-55765"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-55769"}]},{"provider":"osv","source_id":"openSUSE-SU-2026:11167-1","relation":"upstream","url":"https://osv.dev/vulnerability/openSUSE-SU-2026:11167-1","published_at":"2026-07-01T00:00:00Z","modified_at":"2026-07-02T18:24:17.798281Z","summary":"kubectl-cnpg-1.29.2-1.1 on GA media","details":"These are all security issues fixed in the kubectl-cnpg-1.29.2-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[],"affected":[{"ecosystem":"openSUSE:Tumbleweed","package":"kubectl-cnpg","purl":"pkg:rpm/opensuse/kubectl-cnpg&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.29.2-1.1"}]}],"fixed":["1.29.2-1.1"],"provider":"osv","source":"openSUSE-SU-2026:11167-1","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":""},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2018-1058"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-55765"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-55769"}]},{"provider":"cvelistv5","source_id":"CVE-2026-55765","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-55765","license":"CC-BY-4.0","published_at":"2026-08-20T21:38:47.952Z","modified_at":"2026-08-25T15:29:20.264Z","summary":"CloudNativePG: Cleartext role passwords recorded in pg_stat_statements allow privileged tenant roles to recover the PostgreSQL superuser credential and achieve RCE in the database pod","details":"CloudNativePG is a platform designed to manage PostgreSQL databases within Kubernetes environments. Prior to 1.28.4 and 1.29.2, CloudNativePG embedded cleartext role passwords in `ALTER ROLE` and `CREATE ROLE` statements generated by SetUserPassword in pkg/management/postgres/utils/roles.go and appendPasswordOption in internal/management/controller/roles/postgres.go. When pg_stat_statements was preloaded with track_utility enabled and an untrusted tenant held pg_monitor or pg_read_all_stats, the tenant could recover platform-managed superuser or application-owner passwords, reconnect through enabled superuser TCP access, and execute operating system commands in the database pod with `COPY ... FROM PROGRAM`. Clusters using SCRAM-SHA-256 verifiers in managed-role Secrets were not affected. This issue is fixed in versions 1.28.4, 1.29.2, and 1.30.0.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2026-55765"}],"affected":[{"ecosystem":"CVE","package":"cloudnative-pg/cloudnative-pg","versions":["< 1.28.4",">= 1.29.0, < 1.29.2"],"provider":"cvelistv5","source":"CVE-2026-55765","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/security/advisories/GHSA-w3gf-xc94-wvmj"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/pull/10724"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/2f0342747e1f160425b9d51753c0069b0d6117d5"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/3cd5af5d388c26758acf13c19ea806b4bcebb3fe"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/9a13573dbe3d78721b7ea92141e6d2324a2c0ef0"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.28.4"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.29.2"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.30.0"}]},{"provider":"csaf-suse","source_id":"CVE-2026-55765","relation":"self","url":"https://www.suse.com/security/cve/CVE-2026-55765/","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-09-19T01:53:29Z","modified_at":"2026-09-19T01:53:29Z","summary":"SUSE CVE CVE-2026-55765","details":"SUSE CVE-2026-55765\n\nCloudNativePG is a platform designed to manage PostgreSQL databases within Kubernetes environments. Prior to 1.28.4 and 1.29.2, CloudNativePG embedded cleartext role passwords in `ALTER ROLE` and `CREATE ROLE` statements generated by SetUserPassword in pkg/management/postgres/utils/roles.go and appendPasswordOption in internal/management/controller/roles/postgres.go. When pg_stat_statements was preloaded with track_utility enabled and an untrusted tenant held pg_monitor or pg_read_all_stats, the tenant could recover platform-managed superuser or application-owner passwords, reconnect through enabled superuser TCP access, and execute operating system commands in the database pod with `COPY ... FROM PROGRAM`. Clusters using SCRAM-SHA-256 verifiers in managed-role Secrets were not affected. This issue is fixed in versions 1.28.4, 1.29.2, and 1.30.0.","severity":[{"type":"SUSE","score":"important","source":"CVE-2026-55765"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["kubectl-cnpg","kubectl-cnpg-bash-completion","kubectl-cnpg-fish-completion","kubectl-cnpg-zsh-completion"],"package_count":4,"fixed":["kubectl-cnpg-1.29.2-1.1","kubectl-cnpg-bash-completion-1.29.2-1.1","kubectl-cnpg-fish-completion-1.29.2-1.1","kubectl-cnpg-zsh-completion-1.29.2-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-55765"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-55765"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"}]},{"provider":"redhat-vex","source_id":"CVE-2026-55765","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-55765","license":"CC-BY-4.0","published_at":"2026-08-20T21:38:47.952Z","modified_at":"2026-10-16T10:04:46Z","summary":"github.com/cloudnative-pg/cloudnative-pg: CloudNativePG: Remote Code Execution due to cleartext role passwords in pg_stat_statements","details":"A flaw was found in CloudNativePG. Cleartext role passwords were recorded in `pg_stat_statements`, which could allow an untrusted tenant with `pg_monitor` or `pg_read_all_stats` privileges to recover superuser or application-owner passwords. This unauthorized access could enable the tenant to execute operating system commands within the database pod, resulting in remote code execution.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2026-55765"},{"type":"Red Hat","score":"Important","source":"CVE-2026-55765"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"affected","packages":["odf4/ocs-client-rhel9-operator","odf4/ocs-metrics-exporter-rhel9","odf4/odf-cli-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-55765"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4","odf4/devicefinder-rhel9","odf4/mcg-rhel9-operator","odf4/ocs-rhel9-operator","odf4/odf-rhel9-operator"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-55765"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4/odf-multicluster-rhel9-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55765"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-55765.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-55765"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2520818"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-55765"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55765"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/2f0342747e1f160425b9d51753c0069b0d6117d5"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/3cd5af5d388c26758acf13c19ea806b4bcebb3fe"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/9a13573dbe3d78721b7ea92141e6d2324a2c0ef0"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/pull/10724"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.28.4"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.29.2"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.30.0"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/security/advisories/GHSA-w3gf-xc94-wvmj"}]}],"references":[{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/security/advisories/GHSA-w3gf-xc94-wvmj"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/pull/10724"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/2f0342747e1f160425b9d51753c0069b0d6117d5"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/3cd5af5d388c26758acf13c19ea806b4bcebb3fe"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/commit/9a13573dbe3d78721b7ea92141e6d2324a2c0ef0"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.28.4"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.29.2"},{"type":"WEB","url":"https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.30.0"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-55765"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-55765.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-55765"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2520818"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-55765"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55765"}],"sources":[{"provider":"csaf-suse","source_id":"openSUSE-SU-2026:11167-1","url":"https://www.suse.com/security/cve/CVE-2018-1058/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-07-01T00:00:00Z","relation":"upstream"},{"provider":"osv","source_id":"openSUSE-SU-2026:11167-1","url":"https://osv.dev/vulnerability/openSUSE-SU-2026:11167-1","modified_at":"2026-07-02T18:24:17.798281Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-55765","url":"https://www.cve.org/CVERecord?id=CVE-2026-55765","license":"CC-BY-4.0","modified_at":"2026-08-25T15:29:20.264Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2026-55765","url":"https://www.suse.com/security/cve/CVE-2026-55765/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-09-19T01:53:29Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-55765","url":"https://access.redhat.com/security/cve/CVE-2026-55765","license":"CC-BY-4.0","modified_at":"2026-10-16T10:04:46Z","relation":"self"}]}
