# CVE-2026-44477: CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 37% of CVEs (2026-11-30)
- Published: 2026-05-11T15:59:12.000Z
- Modified: 2026-09-10T03:50:45.436Z
- Also known as: GHSA-423p-g724-fr39, GO-2026-5106
- Weaknesses: CWE-250, CWE-271, CWE-426
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cloudnative-pg cloudnative-pg: < 1.28.3; >= 1.29.0, < 1.29.1
- odf4/devicefinder-rhel9: no versions given
- odf4/mcg-rhel9-operator: no versions given
- odf4/ocs-metrics-exporter-rhel9: no versions given
- odf4/ocs-rhel9-operator: no versions given
- odf4/odf-cli-rhel9: no versions given
- odf4/odf-cloudnative-pg-rhel9-operator: no versions given
- odf4/odf-multicluster-rhel9-operator: no versions given
- odf4/odf-rhel9-operator: no versions given
- github.com/cloudnative-pg/cloudnative-pg (Go): before 1.28.3; from 1.29.0 before 1.29.1
- linuxfoundation cloudnativepg: before 1.28.3; from 1.29.0 before 1.29.1

## Every score

- GitHub_M: CVSS:4.0 9.4 Critical `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`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/cloudnative-pg/cloudnative-pg/security/advisories/GHSA-423p-g724-fr39> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/cloudnative-pg/cloudnative-pg/pull/10576> (fix, issue-tracking, patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-44477> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2482763> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44477.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44477> (advisory)
- <https://github.com/cloudnative-pg/cloudnative-pg> (package)
- <https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.28.3> (web)
- <https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.29.1> (web)

## Sources

- CVE List: [CVE-2026-44477](https://www.cve.org/CVERecord?id=CVE-2026-44477), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-423p-g724-fr39](https://github.com/advisories/GHSA-423p-g724-fr39), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5106](https://pkg.go.dev/vuln/GO-2026-5106), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-44477](https://nvd.nist.gov/vuln/detail/CVE-2026-44477), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-44477 · Whole record: https://cve.day/CVE-2026-44477.json · Rebuilt by cve.day 2026-11-25T22:59:22.958Z
