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

Goal: 1000 CNY · Raised: 1310 CNY

100%

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

AI Predicted 9.1 Difficulty: Moderate EPSS 0.04% · P12

Affected Version Matrix 2

VendorProductVersion RangeStatus
cloudnative-pgcloudnative-pg< 1.28.3affected
>= 1.29.0, < 1.29.1affected
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
带着不必要的权限执行
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
cloudnative-pgcloudnative-pg < 1.28.3 -

II. Public POCs for CVE-2026-44477

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

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