CVE-2026-44477
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedCloudNativePG 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceCloudNativePG metrics exporter improperly handles privilege separation - it opens a PostgreSQL connection as the postgres superuser via Unix socket, uses SET ROLE pg_monitor to demote, but session_user remains postgres. Attackers with scrape access can invoke RESET ROLE to recover full superuser privileges and use COPY ... TO PROGRAM to execute OS commands as the postgres user inside the primary pod. The READ ONLY transaction flag does not block this attack vector.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 1.28.3>= 1.29.0, < 1.29.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify CloudNativePG installation and versionRun 'kubectl get deployment -A | grep cloudnativepg' or check the CloudNativePG operator version in the namespace. Use 'kubectl get clusters -A' to find running clusters and their operator versions.Affected if The installed CloudNativePG version is less than 1.28.3, or between 1.29.0 and 1.29.1 exclusive.
-
Locate the metrics exporter podRun 'kubectl get pods -A | grep -i metrics' or check for pods with 'metrics-exporter' in the name within the CloudNativePG namespaces.Affected if A metrics exporter pod exists and is running in the cluster.
-
Verify metrics exporter uses SET ROLE pg_monitorInspect the metrics exporter container specification or logs. Look for the use of SET ROLE pg_monitor command in the exporter's startup configuration or PostgreSQL session initialization.Affected if The metrics exporter is configured to connect as postgres superuser and use SET ROLE pg_monitor for privilege demotion.
-
Check for vulnerable pod execution contextReview the security context of the metrics exporter pod. Confirm it runs as the postgres user and has access to the primary pod's Unix socket or network connection to the PostgreSQL instance.Affected if The metrics exporter runs with privileges that allow it to execute COPY ... TO PROGRAM against the PostgreSQL primary.
You are affected if CloudNativePG version falls within the vulnerable range (<1.28.3 or >=1.29.0,<1.29.1) AND the metrics exporter is enabled and configured to connect as the postgres superuser.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.28.31.29.1
Upgrade CloudNativePG to version 1.29.1 or 1.28.3 which contains the fix for this privilege escalation vulnerability.
1.28.3 (for 1.28.x line) or 1.29.1 (for 1.29.x line)
- Determine the current CloudNativePG version running in your cluster
- If running a version < 1.28.3: upgrade to version 1.28.3 or later in the 1.28.x series
- If running version >= 1.29.0 and < 1.29.1: upgrade to version 1.29.1 or later in the 1.29.x series
- After upgrade, verify the metrics exporter no longer uses SET ROLE that can be reverted via RESET ROLE
- Confirm the fix by testing that RESET ROLE inside a metrics scrape session no longer grants superuser privileges
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,560.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-44477 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-44477 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data