Vulnerability Information
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
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.
CVSS Information
N/A
Vulnerability Type
带着不必要的权限执行
Vulnerability Title
CloudNativePG 代码问题漏洞
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恢复超级用户权限,并使用
CVSS Information
N/A
Vulnerability Type
N/A