SCA: security update for github.com/cloudnative-pg/cloudnative-pg (GHSA-423p-g724-fr39)

critical Tenable Self-Hosted Container Security Plugin ID 442816

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-44477)

Solution

Update the github.com/cloudnative-pg/cloudnative-pg library and its related packages to version 1.28.3 or later.

See Also

https://github.com/advisories/GHSA-423p-g724-fr39

Plugin Details

Severity: Critical

ID: 442816

Version: Revision 1.2

Type: Local

Family: SCA Checks

Published: 6/9/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.16

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-44477

CVSS v3

Risk Factor: Critical

Base Score: 9.9

Temporal Score: 8.6

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.4

Threat Score: 7.7

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/11/2026

Vulnerability Publication Date: 5/11/2026

Reference Information

CVE: CVE-2026-44477