低危 pg_upgrade在普遍的umask下创建敏感元数据文件

CVE编号

CVE-2018-1053

利用情况

暂无

补丁情况

官方补丁

披露时间

2018-02-10
漏洞描述
在9.3.21之前的postgresql 9.3.x,9.4.16之前的9.4.x,9.5.11之前的9.5.x,9.6.7之前的9.6.x和10.2之前的10.x,pg_upgrade在包含输出的当前工作目录中创建文件在umask下的`pg_dumpall -g`,当用户调用pg_upgrade时生效,而不是在0077下,它通常用于其他临时文件。这可以允许经过身份验证的攻击者读取或修改一个文件,该文件可能包含加密或未加密的数据库密码。如果目录模式阻止攻击者搜索当前工作目录,或者流行的umask阻止攻击者打开文件,则攻击是不可行的。

解决建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:
https://www.postgresql.org/about/news/1829/
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 postgresql postgresql * From
(including)
9.3.0
Up to
(excluding)
9.3.21
运行在以下环境
应用 postgresql postgresql * From
(including)
9.4.0
Up to
(excluding)
9.4.16
运行在以下环境
应用 postgresql postgresql * From
(including)
9.5.0
Up to
(excluding)
9.5.11
运行在以下环境
应用 postgresql postgresql * From
(including)
9.6.0
Up to
(excluding)
9.6.7
运行在以下环境
应用 postgresql postgresql 10.0 -
运行在以下环境
应用 postgresql postgresql 10.1 -
运行在以下环境
应用 redhat cloudforms 4.6 -
运行在以下环境
系统 alpine_3.10 postgresql * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.11 postgresql * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.12 postgresql * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.13 postgresql * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.14 postgresql * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.15 postgresql14 * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.16 postgresql14 * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.17 postgresql14 * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.18 postgresql14 * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.19 postgresql14 * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.4 postgresql * Up to
(excluding)
9.5.11-r0
运行在以下环境
系统 alpine_3.5 postgresql * Up to
(excluding)
9.6.7-r0
运行在以下环境
系统 alpine_3.6 postgresql * Up to
(excluding)
9.6.7-r0
运行在以下环境
系统 alpine_3.7 postgresql * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.8 postgresql * Up to
(excluding)
10.2-r0
运行在以下环境
系统 alpine_3.9 postgresql * Up to
(excluding)
10.2-r0
运行在以下环境
系统 amazon_2 binutils * Up to
(excluding)
2.29.1-27.amzn2.0.1
运行在以下环境
系统 canonical ubuntu_linux 14.04 -
运行在以下环境
系统 canonical ubuntu_linux 16.04 -
运行在以下环境
系统 canonical ubuntu_linux 17.10 -
运行在以下环境
系统 centos_7 binutils * Up to
(excluding)
2.27-34.base.el7
运行在以下环境
系统 debian debian_linux 7.0 -
运行在以下环境
系统 debian_7 postgresql-9.1 * Up to
(excluding)
9.1.24lts2-0+deb7u2
运行在以下环境
系统 debian_9 postgresql-9.6 * Up to
(excluding)
9.6.7-0+deb9u1
运行在以下环境
系统 fedora_27 wavpack * Up to
(excluding)
5.1.0-8.fc27
运行在以下环境
系统 fedora_28 wavpack * Up to
(excluding)
5.1.0-8.fc28
运行在以下环境
系统 fedora_30 mi * Up to
(excluding)
5.1.0-9.fc30
运行在以下环境
系统 fedora_31 mi * Up to
(excluding)
5.1.0-9.fc31
运行在以下环境
系统 fedora_EPEL_7 mi * Up to
(excluding)
5.1.0-9.el7
运行在以下环境
系统 opensuse_Leap_15.0 binutils * Up to
(excluding)
2.31-lp150.5.3.1
运行在以下环境
系统 opensuse_Leap_15.1 wavpack * Up to
(excluding)
5.4.0-lp151.5.6.1
运行在以下环境
系统 opensuse_Leap_15.2 wavpack * Up to
(excluding)
5.4.0-lp152.7.3.1
运行在以下环境
系统 opensuse_Leap_42.3 libpq5 * Up to
(excluding)
9.6.7-12.1
运行在以下环境
系统 oracle_7 binutils * Up to
(excluding)
2.27-34.base.0.1.el7
运行在以下环境
系统 redhat_7 binutils * Up to
(excluding)
2.27-34.base.el7
运行在以下环境
系统 suse_11_SP4 libpq5 * Up to
(excluding)
9.4.16-0.23.13.2
运行在以下环境
系统 suse_12_SP2 libpq5 * Up to
(excluding)
9.6.7-3.13.1
运行在以下环境
系统 suse_12_SP3 libpq5 * Up to
(excluding)
9.6.7-3.13.1
运行在以下环境
系统 ubuntu_14.04 postgresql-9.3 * Up to
(excluding)
9.3.21-0ubuntu0.14.0
运行在以下环境
系统 ubuntu_16.04 postgresql-9.5 * Up to
(excluding)
9.5.11-0ubuntu0.16.04
阿里云评分
2.3
  • 攻击路径
    本地
  • 攻击复杂度
    困难
  • 权限要求
    普通权限
  • 影响范围
    有限影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    100
CWE-ID 漏洞类型
CWE-732 关键资源的不正确权限授予
阿里云安全产品覆盖情况