Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-44477— CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE

Quick assessment

Affected
cloudnative-pg cloudnative-pg
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

CloudNativePG是CloudNativePG开源的一个在Kubernetes上管理PostgreSQL数据库全生命周期的开源平台。 CloudNativePG 1.29.1之前版本和1.28.3之前版本存在代码问题漏洞,该漏洞源于指标导出器通过pod本地Unix套接字以postgres超级用户身份打开PostgreSQL连接,然后使用SET ROLE pg_monitor降级会话,但session_user仍为postgres,攻击者可在抓取会话中调用RESET ROLE恢复超级用户权限,并使用

AI Predicted 9.1 Difficulty: Moderate EPSS 0.48% · P40

Affected Version Matrix 2

VendorProduct Version RangeStatus
cloudnative-pg cloudnative-pg < 1.28.3 affected
>= 1.29.0, < 1.29.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-44477

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
带着不必要的权限执行
Source: CVE Program / CVE List V5
Vulnerability Title
CloudNativePG 代码问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
CloudNativePG是CloudNativePG开源的一个在Kubernetes上管理PostgreSQL数据库全生命周期的开源平台。 CloudNativePG 1.29.1之前版本和1.28.3之前版本存在代码问题漏洞,该漏洞源于指标导出器通过pod本地Unix套接字以postgres超级用户身份打开PostgreSQL连接,然后使用SET ROLE pg_monitor降级会话,但session_user仍为postgres,攻击者可在抓取会话中调用RESET ROLE恢复超级用户权限,并使用
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
cloudnative-pg cloudnative-pg < 1.28.3 -

II. Public POCs for CVE-2026-44477

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-44477

登录查看更多情报信息。

Patches & Fixes for CVE-2026-44477 (1)

Vendor Advisories for CVE-2026-44477 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-44477

No comments yet


Leave a comment