低危 在INSERT ... ON CONFLICT DO UPDATE语句中缺少授权和内存泄露

CVE编号

CVE-2018-10925

利用情况

暂无

补丁情况

官方补丁

披露时间

2018-08-10
漏洞描述
据发现,在10.5之前的 PostgreSQL版本,以及9.6.10,9.5.14,9.4.19和9.3.24版本未能正确检查涉及“INSERT ... ON CONFLICT DO UPDATE”的某些语句的授权。具有'CREATE TABLE'权限的攻击者可以利用它来读取任意字节的服务器内存。如果攻击者还对特定表具有某些“INSERT”和有限的“UPDATE”权限,则他们可以利用此权限更新同一表中的其他列。

解决建议
厂商已发布漏洞修复程序,请及时关注更新:
https://www.postgresql.org/about/news/1878/
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 postgresql postgresql * From
(including)
10.0
Up to
(excluding)
10.5
运行在以下环境
应用 postgresql postgresql * From
(including)
9.3.0
Up to
(excluding)
9.3.24
运行在以下环境
应用 postgresql postgresql * From
(including)
9.4.0
Up to
(excluding)
9.4.19
运行在以下环境
应用 postgresql postgresql * From
(including)
9.5.0
Up to
(excluding)
9.5.14
运行在以下环境
应用 postgresql postgresql * From
(including)
9.6.0
Up to
(excluding)
9.6.10
运行在以下环境
系统 alpine_3.10 postgresql * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.11 postgresql * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.12 postgresql * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.13 postgresql * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.14 postgresql * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.15 postgresql14 * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.16 postgresql14 * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.17 postgresql14 * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.18 postgresql14 * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.19 postgresql14 * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.5 postgresql * Up to
(excluding)
9.6.10-r0
运行在以下环境
系统 alpine_3.6 postgresql * Up to
(excluding)
9.6.10-r0
运行在以下环境
系统 alpine_3.7 postgresql * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.8 postgresql * Up to
(excluding)
10.5-r0
运行在以下环境
系统 alpine_3.9 postgresql * Up to
(excluding)
10.5-r0
运行在以下环境
系统 amazon_AMI postgresql95 * Up to
(excluding)
9.5.15-1.80.amzn1
运行在以下环境
系统 canonical ubuntu_linux 14.04 -
运行在以下环境
系统 canonical ubuntu_linux 16.04 -
运行在以下环境
系统 canonical ubuntu_linux 18.04 -
运行在以下环境
系统 debian debian_linux 9.0 -
运行在以下环境
系统 debian_9 postgresql-9.6 * Up to
(excluding)
9.6.10-0+deb9u1
运行在以下环境
系统 fedora_27 postgresql-docs * Up to
(excluding)
9.6.10-1.fc27
运行在以下环境
系统 fedora_28 postgresql-docs * Up to
(excluding)
10.5-1.fc28
运行在以下环境
系统 opensuse_Leap_15.0 libpq5 * Up to
(excluding)
10.5-lp150.3.3.1
运行在以下环境
系统 opensuse_Leap_15.1 libpq5 * Up to
(excluding)
10.13-lp151.2.14.1
运行在以下环境
系统 opensuse_Leap_42.3 postgresql96 * Up to
(excluding)
9.6.10-21.1
运行在以下环境
系统 suse_12_SP3 postgresql96 * Up to
(excluding)
9.6.10-3.22.7
运行在以下环境
系统 ubuntu_16.04 postgresql-9.5 * Up to
(excluding)
9.5.14-0ubuntu0.16.04
运行在以下环境
系统 ubuntu_18.04 postgresql-10 * Up to
(excluding)
10.5-0ubuntu0.18.04
阿里云评分
2.7
  • 攻击路径
    远程
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    有限影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    100
CWE-ID 漏洞类型
CWE-863 授权机制不正确
阿里云安全产品覆盖情况