漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
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
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 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