{"cve":"CVE-2026-44477","nvd":{"published":"2026-05-28T17:16:30.590","modified":"2026-07-15T02:21:54.357","status":"Modified","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.","cvss_v4":{"vector":"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","score":9.4},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9},"cwes":["CWE-250","CWE-271","CWE-426"],"references":["https://github.com/cloudnative-pg/cloudnative-pg/pull/10576","https://github.com/cloudnative-pg/cloudnative-pg/security/advisories/GHSA-423p-g724-fr39","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"],"products":["linuxfoundation:cloudnativepg"],"source":"nvd","synced_at":"2026-10-19T22:36:28.938604137+00:00"},"epss":{"cve":"CVE-2026-44477","score":0.0048,"percentile":0.41445,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-423p-g724-fr39","url":"https://osv.dev/vulnerability/GHSA-423p-g724-fr39","summary":"CloudNativePG's metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE","modified":"2026-09-10T03:50:45.436330963Z","packages":[{"ecosystem":"Go","name":"github.com/cloudnative-pg/cloudnative-pg","purl":"pkg:golang/github.com/cloudnative-pg/cloudnative-pg","ranges":["<1.28.3"],"fixed":["1.28.3"]},{"ecosystem":"Go","name":"github.com/cloudnative-pg/cloudnative-pg","purl":"pkg:golang/github.com/cloudnative-pg/cloudnative-pg","ranges":[">=1.29.0 <1.29.1"],"fixed":["1.29.1"]}]},{"id":"GO-2026-5106","url":"https://osv.dev/vulnerability/GO-2026-5106","summary":"CloudNativePG's metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE in github.com/cloudnative-pg/cloudnative-pg","modified":"2026-06-25T18:45:20.861307873Z","packages":[{"ecosystem":"Go","name":"github.com/cloudnative-pg/cloudnative-pg","purl":"pkg:golang/github.com/cloudnative-pg/cloudnative-pg","ranges":["<1.28.3",">=1.29.0 <1.29.1"],"fixed":["1.28.3","1.29.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}