{"answers":{"affected":"5 open source packages ship an affected version, including github.com/cloudnative-pg/cloudnative-pg. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-44477 in the wild and no public exploit code.","fix":"Upgrade github.com/cloudnative-pg/cloudnative-pg to a fixed version for your release line: 1.28.3 or 1.29.1.","what":"CVE-2026-44477 is a critical vulnerability in cloudnative-pg, published on 28 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-44477 and fix it if it is affected.\n\nWhat it is: CVE-2026-44477 is a critical vulnerability in cloudnative-pg, published on 28 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-44477 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cloudnative-pg/cloudnative-pg (Go): affected all versions; fixed in 1.28.3, 1.29.1\n- github.com/cloudnative-pg/cloudnative-pg (Go): affected all versions; fixed in 1.28.3\n- github.com/cloudnative-pg/cloudnative-pg (Go): affected all versions; fixed in 1.28.3\n- github.com/cloudnative-pg/cloudnative-pg (Go): affected from 1.29.0; fixed in 1.29.1\n- github.com/cloudnative-pg/cloudnative-pg (Go): affected from 1.29.0; fixed in 1.29.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-44477/ (Markdown: https://insights.sbomify.com/CVE-2026-44477/index.md)","id":"CVE-2026-44477","markdown":"https://insights.sbomify.com/CVE-2026-44477/index.md","name":"CVE-2026-44477","record":{"aliases":["GHSA-423p-g724-fr39","GO-2026-5106","MINI-65wx-h36c-mf6j","MINI-8qcj-4fpw-qhjq","MINI-c7rg-37g5-6hq2","MINI-cxq5-2g7f-hfcc","MINI-fq8r-33gp-pv46","MINI-r224-wchp-j6x9","MINI-wcfh-f5m7-w855"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes PostgreSQL operator","requires_auth":"low_privilege","summary":"Attackers can escalate privileges to PostgreSQL superuser and execute OS commands by exploiting improper role demotion in the metrics exporter.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cloudnativepg","vendor":"linuxfoundation"}],"cvss":{"score":9.4,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"},{"id":"CWE-271","name":"Privilege Dropping / Lowering Errors"},{"id":"CWE-250","name":"Execution with Unnecessary Privileges"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE","id":"CVE-2026-44477","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2026"},"n_packages":5,"n_references":2,"next":{"headline":"hoppscotch: Unauthenticated Onboarding Config Disclosure via Empty Recovery Token","id":"CVE-2026-44478"},"packages":[{"ecosystem":"Go","fixed":["1.28.3","1.29.1"],"introduced":["0","1.29.0"],"last_affected":[],"package":"github.com/cloudnative-pg/cloudnative-pg","purl":"pkg:golang/github.com/cloudnative-pg/cloudnative-pg","source":"GO-2026-5106"},{"ecosystem":"Go","fixed":["1.28.3"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudnative-pg/cloudnative-pg","purl":null,"source":"GHSA-423p-g724-fr39"},{"ecosystem":"Go","fixed":["1.28.3"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudnative-pg/cloudnative-pg","purl":"pkg:golang/github.com/cloudnative-pg/cloudnative-pg","source":"GHSA-423p-g724-fr39"},{"ecosystem":"Go","fixed":["1.29.1"],"introduced":["1.29.0"],"last_affected":[],"package":"github.com/cloudnative-pg/cloudnative-pg","purl":null,"source":"GHSA-423p-g724-fr39"},{"ecosystem":"Go","fixed":["1.29.1"],"introduced":["1.29.0"],"last_affected":[],"package":"github.com/cloudnative-pg/cloudnative-pg","purl":"pkg:golang/github.com/cloudnative-pg/cloudnative-pg","source":"GHSA-423p-g724-fr39"}],"prev":{"headline":"Doorkeeper OpenID Connect: Dynamic Client Registration feature creates public clients with client_secret","id":"CVE-2026-44476"},"products":["cloudnative-pg"],"published":"2026-05-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["cloudnative-pg"]},"summary":"Attackers can escalate privileges to PostgreSQL superuser and execute OS commands by exploiting improper role demotion in the metrics exporter.","url":"https://insights.sbomify.com/CVE-2026-44477/"}