CVE-2026-44477
published critical CVSS 4.0 · 9.4CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cloudnative-pg | — | cloudnative-pg< 1.28.3 · >= 1.29.0, < 1.29.1 | Affected | Not stated | GitHub_M |
| Red Hat | — | odf4/devicefinder-rhel9Red Hat Openshift Data Foundation 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | odf4/mcg-rhel9-operatorRed Hat Openshift Data Foundation 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | odf4/ocs-metrics-exporter-rhel9Red Hat Openshift Data Foundation 4 | Affected | Not stated | redhat-SADP |
| Red Hat | — | odf4/ocs-rhel9-operatorRed Hat Openshift Data Foundation 4 | Affected | Not stated | redhat-SADP |
| Red Hat | — | odf4/odf-cli-rhel9Red Hat Openshift Data Foundation 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | odf4/odf-cloudnative-pg-rhel9-operatorRed Hat Openshift Data Foundation 4 | Affected | Not stated | redhat-SADP |
| Red Hat | — | odf4/odf-multicluster-rhel9-operatorRed Hat Openshift Data Foundation 4 | Affected | Not stated | redhat-SADP |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | odf4/odf-rhel9-operatorRed Hat Openshift Data Foundation 4 | Unaffected | Not required | redhat-SADP |
Description
CloudNativePG is a platform designed to manage PostgreSQL databases within Kubernetes environments. Prior to 1.29.1 and 1.28.3, the CloudNativePG metrics exporter opens its PostgreSQL connection as the postgres superuser via the pod-local Unix socket, then demotes the session with SET ROLE pg_monitor. SET ROLE changes only current_user; session_user remains postgres. Any SQL expression evaluated inside the scrape session can invoke RESET ROLE to recover real superuser privileges, then use COPY ... TO PROGRAM to spawn an OS-level subprocess as the postgres user inside the primary pod. The READ ONLY transaction flag does not block this; it gates writes to database state, not external processes. This vulnerability is fixed in 1.29.1 and 1.28.3.
A flaw was found in CloudNativePG's metrics exporter. The issue arises because the metrics exporter connected to PostgreSQL using a highly privileged account and did not properly restrict privileges during monitoring operations. A low-privileged database user could exploit this behavior through crafted monitoring queries or PostgreSQL object resolution manipulation to regain PostgreSQL superuser privileges and potentially execute arbitrary operating system commands as the postgres user inside the affected database pod.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.4 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cloudnative-pg | cloudnative-pg | < 1.28.3 (affected)>= 1.29.0, < 1.29.1 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Openshift Data Foundation 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Openshift Data Foundation 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Openshift Data Foundation 4 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Openshift Data Foundation 4 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Openshift Data Foundation 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Openshift Data Foundation 4 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Openshift Data Foundation 4 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Openshift Data Foundation 4 | Default: unaffected | redhat-SADP · adp |
Weaknesses
4- CWE-250 CWE-250: Execution with Unnecessary Privileges
- CWE-271 CWE-271: Privilege Dropping / Lowering Errors
- CWE-426 CWE-426: Untrusted Search Path
- CWE-250 Execution with Unnecessary Privileges
References
5- https://access.redhat.com/security/cve/CVE-2026-44477
- RHBZ#2482763 https://bugzilla.redhat.com/show_bug.cgi?id=2482763
- https://github.com/cloudnative-pg/cloudnative-pg/pull/10576
- https://github.com/cloudnative-pg/cloudnative-pg/security/advisories/GHSA-423p-g724-fr39
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44477.json
Provider assertions
3GitHub_M · cna
CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE
redhat-SADP · adp
github.com/cloudnative-pg/cloudnative-pg: CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 186c31a0d473b63eb7171f23bbbeca4a8b8347618d953abafd2bce471147d16c
- Ingested
- 23 Sep 2026, 09:15:17 UTC
- Source record
- Official CVE record