中危 pg_dump 期间的 PostgreSQL 关系替换执行任意 SQL(CVE-2024-7348)

CVE编号

CVE-2024-7348

利用情况

暂无

补丁情况

官方补丁

披露时间

2024-08-08
漏洞描述
Time-of-check Time-of-use (TOCTOU) race condition in pg_dump in PostgreSQL allows an object creator to execute arbitrary SQL functions as the user running pg_dump, which is often a superuser. The attack involves replacing another relation type with a view or foreign table. The attack requires waiting for pg_dump to start, but winning the race condition is trivial if the attacker retains an open transaction. Versions before PostgreSQL 16.4, 15.8, 14.13, 13.16, and 12.20 are affected.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 postgresql postgresql * From
(including)
12.0
Up to
(excluding)
12.20
运行在以下环境
应用 postgresql postgresql * From
(including)
13.0
Up to
(excluding)
13.16
运行在以下环境
应用 postgresql postgresql * From
(including)
14.0
Up to
(excluding)
14.13
运行在以下环境
应用 postgresql postgresql * From
(including)
15.0
Up to
(excluding)
15.8
运行在以下环境
应用 postgresql postgresql * From
(including)
16.0
Up to
(excluding)
16.4
运行在以下环境
系统 debian_11 postgresql-13 * Up to
(excluding)
13.16-0+deb11u1
运行在以下环境
系统 debian_12 postgresql-15 * Up to
(excluding)
15.8-0+deb12u1
阿里云评分
6.2
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-367 检查时间与使用时间(TOCTOU)的竞争条件
阿里云安全产品覆盖情况