Amazon Linux 2:postgresql (ALASPOSTGRESQL12-2024-008)

high Nessus 插件 ID 191621

简介

远程 Amazon Linux 2 主机缺少安全更新。

描述

远程主机上安装的 postgresql 版本低于 12.18-1。因此,该应用程序受到 ALAS2POSTGRESQL12-2024-008 公告中提及的漏洞的影响。

- 在 PostgreSQL 中,REFRESH MATERIALIZED VIEW CONCURRENTLY 中存在延迟特权丢失问题,对象创建者可利用此问题,以命令发出者的身份执行任意 SQL 函数。该命令的目的是以具体化视图所有者的身份运行 SQL 函数,从而实现不受信任的具体化视图的安全刷新。受害者是超级用户或攻击者角色之一的成员。此攻击要求诱使受害者在攻击者的具体化视图上同时运行 REFRESH MATERIALIZED VIEW CONCURRENTLY。在利用此漏洞的过程中,攻击者创建了使用 CREATE RULE 将内部构建的临时表格转换为视图的函数。PostgreSQL 15.6、14.11、13.14 和 12.18 之前的版本受到影响。唯一已知的漏洞利用在 PostgreSQL 16 和更高版本中不起作用。对于深度防御,PostgreSQL 16.2 添加了较早版本分支用来修复其漏洞的保护。(CVE-2024-0985)

请注意,Nessus 尚未测试此问题,而是只依据应用程序自我报告的版本号进行判断。

解决方案

运行“yum update postgresql”以更新系统。

另见

https://alas.aws.amazon.com/AL2/ALASPOSTGRESQL12-2024-008.html

https://alas.aws.amazon.com/cve/html/CVE-2024-0985.html

https://alas.aws.amazon.com/faqs.html

插件详情

严重性: High

ID: 191621

文件名: al2_ALASPOSTGRESQL12-2024-008.nasl

版本: 1.0

类型: local

代理: unix

发布时间: 2024/3/6

最近更新时间: 2024/3/6

支持的传感器: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

风险信息

VPR

风险因素: Medium

分数: 6.7

CVSS v2

风险因素: High

基本分数: 9

时间分数: 6.7

矢量: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS 分数来源: CVE-2024-0985

CVSS v3

风险因素: High

基本分数: 8

时间分数: 7

矢量: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

时间矢量: CVSS:3.0/E:U/RL:O/RC:C

漏洞信息

CPE: p-cpe:/a:amazon:linux:postgresql, p-cpe:/a:amazon:linux:postgresql-contrib, p-cpe:/a:amazon:linux:postgresql-debuginfo, p-cpe:/a:amazon:linux:postgresql-docs, p-cpe:/a:amazon:linux:postgresql-llvmjit, p-cpe:/a:amazon:linux:postgresql-plperl, p-cpe:/a:amazon:linux:postgresql-plpython2, p-cpe:/a:amazon:linux:postgresql-plpython3, p-cpe:/a:amazon:linux:postgresql-pltcl, p-cpe:/a:amazon:linux:postgresql-server, p-cpe:/a:amazon:linux:postgresql-server-devel, p-cpe:/a:amazon:linux:postgresql-static, p-cpe:/a:amazon:linux:postgresql-test, p-cpe:/a:amazon:linux:postgresql-test-rpm-macros, p-cpe:/a:amazon:linux:postgresql-upgrade, p-cpe:/a:amazon:linux:postgresql-upgrade-devel, cpe:/o:amazon:linux:2

必需的 KB 项: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

易利用性: No known exploits are available

补丁发布日期: 2024/2/29

漏洞发布日期: 2024/2/8

参考资料信息

CVE: CVE-2024-0985

IAVB: 2024-B-0009