CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cloudnative-pg | cloudnative-pg | affected |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cloudnative-pg | Cloudnative-pg |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-423p-g724-fr39 | CloudNativePG's metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.480% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Linuxfoundation
Linuxfoundation cloudnativepg |
|
| CPEs | cpe:2.3:a:linuxfoundation:cloudnativepg:*:*:*:*:*:kubernetes:*:* | |
| Vendors & Products |
Linuxfoundation
Linuxfoundation cloudnativepg |
|
| Metrics |
cvssV3_1
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Cloudnative-pg
Cloudnative-pg cloudnative-pg |
|
| Vendors & Products |
Cloudnative-pg
Cloudnative-pg cloudnative-pg |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE | |
| Weaknesses | CWE-250 CWE-271 CWE-426 |
|
| References |
| |
| Metrics |
cvssV4_0
|