Amazon Linux AMI:postgresql92 (ALAS-2025-1959)

high Nessus 插件 ID 215024

简介

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

描述

远程主机上安装的 postgresql92 版本低于 9.2.24-3.70。因此,该软件受到 ALAS-2025-1959 公告中提及的多个漏洞影响。

如果在修改某些 SQL 数组值时缺少溢出检查,经身份验证的数据库用户可向内存区域写入任意字节,从而促进任意代码执行。缺少溢出检查还会让经过身份验证的数据库用户大范围读取服务器内存。CVE-2021-32027 修复此描述中涵盖的一些攻击,但遗漏了其他攻击。(CVE-2023-5869)

PostgreSQL 的 pg_dump 中存在检查时间使用时间 (TOCTOU) 争用条件,允许对象创建者以运行 pg_dump 的用户身份(通常为超级用户)执行任意 SQL 函数。攻击涉及将另一种关系类型替换为视图或外部表。此攻击需要等待 pg_dump 启动,但如果攻击者保留了打开的事务,则赢得争用条件无关紧要。
PostgreSQL 16.4、15.8、14.13、13.16 和 12.20之前的版本受到影响。(CVE-2024-7348)

Tenable 已直接从测试产品的安全公告中提取上述描述块。

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

解决方案

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

另见

https://alas.aws.amazon.com/ALAS-2025-1959.html

https://alas.aws.amazon.com/cve/html/CVE-2023-5869.html

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

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

插件详情

严重性: High

ID: 215024

文件名: ala_ALAS-2025-1959.nasl

版本: 1.1

类型: local

代理: unix

发布时间: 2025/2/5

最近更新时间: 2025/2/5

支持的传感器: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous 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-2023-5869

CVSS v3

风险因素: High

基本分数: 8.8

时间分数: 7.7

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

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

漏洞信息

CPE: p-cpe:/a:amazon:linux:postgresql92-test, p-cpe:/a:amazon:linux:postgresql92-libs, p-cpe:/a:amazon:linux:postgresql92-server, p-cpe:/a:amazon:linux:postgresql92-server-compat, p-cpe:/a:amazon:linux:postgresql92-plperl, cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:postgresql92-docs, p-cpe:/a:amazon:linux:postgresql92, p-cpe:/a:amazon:linux:postgresql92-debuginfo, p-cpe:/a:amazon:linux:postgresql92-contrib, p-cpe:/a:amazon:linux:postgresql92-pltcl, p-cpe:/a:amazon:linux:postgresql92-plpython27, p-cpe:/a:amazon:linux:postgresql92-devel, p-cpe:/a:amazon:linux:postgresql92-plpython26

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

易利用性: No known exploits are available

补丁发布日期: 2025/1/30

漏洞发布日期: 2023/11/9

参考资料信息

CVE: CVE-2023-5869, CVE-2024-7348

IAVB: 2023-B-0088-S, 2024-B-0117-S