Privilege Dropping / Lowering Errors Affecting github.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres package, versions <1.28.3>=1.29.0 <1.29.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCLOUDNATIVEPGCLOUDNATIVEPGPKGMANAGEMENTPOSTGRES-17279519
  • published10 Jun 2026
  • disclosed11 May 2026
  • creditMehmet Ince

Introduced: 11 May 2026

CVE-2026-44477  (opens in a new tab)
CWE-250  (opens in a new tab)
CWE-271  (opens in a new tab)

How to fix?

Upgrade github.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres to version 1.28.3, 1.29.1 or higher.

Overview

Affected versions of this package are vulnerable to Privilege Dropping / Lowering Errors in the metrics exporter. An attacker can gain PostgreSQL superuser privileges and execute arbitrary OS commands as the postgres user inside the primary pod by exploiting the ability to plant shadow objects or manipulate custom metric queries evaluated in the scrape session. This can be achieved via custom metric queries with unqualified identifiers or by shadowing catalog functions in user databases, allowing privilege escalation and remote code execution within one scrape interval. This is only exploitable if the attacker can influence metric queries or owns a database in the cluster.

Workaround

This vulnerability can be mitigated by schema-qualifying all identifiers in custom metric queries, restricting database ownership to trusted roles, limiting the scope of target_databases: '*' queries, and preventing untrusted users from supplying or influencing metric query bodies.

CVSS Base Scores

version 4.0
version 3.1