RHEL 5/6:postgresql 和 postgresql84 (RHSA-2012:0678)

critical Nessus 插件 ID 59223

简介

远程 Red Hat 主机缺少一个或多个 postgresql/postgresql84 安全更新。

描述

远程 Redhat Enterprise Linux 5 / 6 主机上安装的程序包受到 RHSA-2012:0678 公告中提及的多个漏洞影响。

PostgreSQL 是高级对象关系数据库管理系统 (DBMS)。

pg_dump 实用工具在其生成的 SQL 脚本中确实将对象名称插入了注释中。非特权数据库用户可创建名称包含换行符加 SQL 命令的对象。这个 SQL 命令后可能被特权用户在还原备份转储期间执行,从而导致升级权限。(CVE-2012-0868)

配置为执行 SSL 证书验证时,PostgreSQL 仅检查证书通用名字段的前 31 个字符。根据配置,这可能允许攻击者使用受信任证书颁发机构为不同名称颁发的证书来模拟服务器或客户端。(CVE-2012-0867)

CREATE TRIGGER 未对要调用的触发函数执行权限检查。已经认证的数据库用户可能利用此缺陷,对其所选数据调用特权触发函数。
(CVE-2012-0866)

更新后的程序包升级到 PostgreSQL 8.4.11 版,修复了这些问题以及多个数据损坏问题和少量非安全问题。有关完整变更列表,请参阅《PostgreSQL 发行说明》:

http://www.postgresql.org/docs/8.4/static/release.html

建议所有 PostgreSQL 用户升级这些更新后的程序包其中修正了这些问题。如果 postgresql 服务正在运行,它将在安装此更新后自动重新启动。

Tenable 已直接从 Red Hat Enterprise Linux 安全公告中提取上述描述块。

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

解决方案

依据 RHSA-2012:0678 中的指南更新 RHEL postgresql/postgresql84 程序包。

另见

http://www.nessus.org/u?b0bae25c

http://www.postgresql.org/docs/8.4/static/release.html

https://access.redhat.com/errata/RHSA-2012:0678

https://access.redhat.com/security/updates/classification/#moderate

https://bugzilla.redhat.com/show_bug.cgi?id=797222

https://bugzilla.redhat.com/show_bug.cgi?id=797915

https://bugzilla.redhat.com/show_bug.cgi?id=797917

插件详情

严重性: Critical

ID: 59223

文件名: redhat-RHSA-2012-0678.nasl

版本: 1.27

类型: local

代理: unix

发布时间: 2012/5/22

最近更新时间: 2024/11/4

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

风险信息

VPR

风险因素: Medium

分数: 6.5

Vendor

Vendor Severity: Moderate

CVSS v2

风险因素: Medium

基本分数: 6.8

时间分数: 5

矢量: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS 分数来源: CVE-2012-0868

CVSS v3

风险因素: Critical

基本分数: 10

时间分数: 8.7

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

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

漏洞信息

CPE: p-cpe:/a:redhat:enterprise_linux:postgresql84-devel, p-cpe:/a:redhat:enterprise_linux:postgresql-test, p-cpe:/a:redhat:enterprise_linux:postgresql84-plperl, p-cpe:/a:redhat:enterprise_linux:postgresql84-contrib, p-cpe:/a:redhat:enterprise_linux:postgresql84-tcl, cpe:/o:redhat:enterprise_linux:6, p-cpe:/a:redhat:enterprise_linux:postgresql-devel, p-cpe:/a:redhat:enterprise_linux:postgresql-plperl, p-cpe:/a:redhat:enterprise_linux:postgresql84-pltcl, p-cpe:/a:redhat:enterprise_linux:postgresql84-plpython, p-cpe:/a:redhat:enterprise_linux:postgresql-pltcl, p-cpe:/a:redhat:enterprise_linux:postgresql84-test, p-cpe:/a:redhat:enterprise_linux:postgresql-server, p-cpe:/a:redhat:enterprise_linux:postgresql84-libs, p-cpe:/a:redhat:enterprise_linux:postgresql84-server, p-cpe:/a:redhat:enterprise_linux:postgresql-contrib, cpe:/o:redhat:enterprise_linux:5, p-cpe:/a:redhat:enterprise_linux:postgresql-plpython, p-cpe:/a:redhat:enterprise_linux:postgresql-libs, p-cpe:/a:redhat:enterprise_linux:postgresql84-python, p-cpe:/a:redhat:enterprise_linux:postgresql84-docs, p-cpe:/a:redhat:enterprise_linux:postgresql-docs, p-cpe:/a:redhat:enterprise_linux:postgresql, p-cpe:/a:redhat:enterprise_linux:postgresql84

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

易利用性: No known exploits are available

补丁发布日期: 2012/5/21

漏洞发布日期: 2012/7/18

参考资料信息

CVE: CVE-2012-0866, CVE-2012-0867, CVE-2012-0868

BID: 52188

RHSA: 2012:0678