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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-05-28 · Modified: 2026-07-15
- Aliases: CGA-67q3-p87j-v5hf, CGA-g9p6-x5cr-wv89, CGA-hqhc-fmgh-4wxr, CGA-x9jp-4fff-336v, GHSA-423p-g724-fr39, GO-2026-5106, CGA-38vq-p3jf-3fx2, CGA-3v43-xmv6-pr6h, CGA-3wf3-hgxv-7jm6, CGA-8cqx-7j82-38wp, CGA-v757-mg69-c773, CGA-xw7g-65r2-97m6, CGA-xwwm-9j7x-m8vp
- Record: https://cvemate.com/vulnerability/CVE-2026-44477 · JSON: https://cvemate.com/vulnerability/CVE-2026-44477/json

## Description

```text
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.
```

## Signals

- CVSS: 9.9 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 0.48%, percentile 43.079%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard cloudnative-pg (Chainguard): \< 1.29.1-r0
- chainguard cloudnative-pg-fips (Chainguard): \< 1.29.1-r0
- chainguard cloudnative-pg-fips-plugins (Chainguard): \< 1.29.1-r0
- chainguard cloudnative-pg-plugins (Chainguard): \< 1.29.1-r0
- chainguard plugin-barman-cloud (Chainguard): \< 0.12.0-r3
- chainguard plugin-barman-cloud-fips (Chainguard): \< 0.12.0-r4
- wolfi cloudnative-pg (Wolfi): \< 1.29.1-r0
- wolfi cloudnative-pg-plugins (Wolfi): \< 1.29.1-r0
- cloudnative-pg cloudnative-pg: \< 1.28.3 \| ≥ 1.29.0, \< 1.29.1
- github.com/cloudnative-pg cloudnative-pg (Go): \< 1.28.3 \| ≥ 1.29.0, \< 1.29.1
- linuxfoundation cloudnativepg: \< 1.28.3 \| ≥ 1.29.0, \< 1.29.1

## References

- <https://github.com/cloudnative-pg/cloudnative-pg/security/advisories/GHSA-423p-g724-fr39>
- <https://github.com/cloudnative-pg/cloudnative-pg/pull/10576>
- <https://access.redhat.com/security/cve/CVE-2026-44477>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2482763>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44477.json>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44477.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44477>
- <https://github.com/cloudnative-pg/cloudnative-pg>
- <https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.28.3>
- <https://github.com/cloudnative-pg/cloudnative-pg/releases/tag/v1.29.1>

---

Data as of 2026-12-05T07:00:02.583Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
