Debian DLA-1874-1:postgresql-9.4 安全性更新

high Nessus Plugin ID 127483

概要

遠端 Debian 主機缺少一個安全性更新。

說明

- CVE-2019-10208:`pg_temp` 中的 `TYPE` 在 `SECURITY DEFINER` 執行期間執行任意 SQL。受影響的版本:9.4 - 11 若給予合適的 `SECURITY DEFINER` 函式,攻擊者可以在函式擁有者的身份下執行任意 SQL。攻擊需要對函式具有 `EXECUTE` 權限,該函式本身必須包含具有不精確引數類型相符的函式呼叫。例如 `length('foo'::varchar)` 和 `length('foo')` 是不精確的,而 `length('foo'::text)` 是精確的。攻擊者可以惡意利用此弱點的一部分,使用 `CREATE DOMAIN` 在 `pg_temp` 配置中建立一個類型。攻擊方式和修正與 CVE-2007-2138 相似。編寫 `SECURITY DEFINER` 函式仍需要遵循文件中指出的注意事項:https://www.postgresql.org/docs/devel/sql-createfunction.html#SQL-CREA TEFUNCTION-SECURITY。PostgreSQL 專案感謝 Tom Lane 報告此問題。針對 Debian 8「Jessie」,此問題已在 9.4.24-0+deb8u1 版本中修正。建議您升級 postgresql-9.4 套件。注意:Tenable Network Security 已直接從 DLA 安全性公告擷取前置描述區塊。Tenable 已盡量在不造成其他問題的前提下,嘗試自動清理並將其格式化。

解決方案

升級受影響的套件。

另請參閱

https://lists.debian.org/debian-lts-announce/2019/08/msg00007.html

https://packages.debian.org/source/jessie/postgresql-9.4

http://www.nessus.org/u?16992e29

Plugin 詳細資訊

嚴重性: High

ID: 127483

檔案名稱: debian_DLA-1874.nasl

版本: 1.8

類型: local

代理程式: unix

已發布: 2019/8/12

已更新: 2021/1/11

支援的感應器: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

風險資訊

VPR

風險因素: Medium

分數: 5.9

CVSS v2

風險因素: Medium

基本分數: 6.5

時間分數: 4.8

媒介: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS 評分資料來源: CVE-2019-10208

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:debian:debian_linux:libecpg-compat3, p-cpe:/a:debian:debian_linux:libecpg-dev, p-cpe:/a:debian:debian_linux:libecpg6, p-cpe:/a:debian:debian_linux:libpgtypes3, p-cpe:/a:debian:debian_linux:libpq-dev, p-cpe:/a:debian:debian_linux:libpq5, p-cpe:/a:debian:debian_linux:postgresql-9.4, p-cpe:/a:debian:debian_linux:postgresql-9.4-dbg, p-cpe:/a:debian:debian_linux:postgresql-client-9.4, p-cpe:/a:debian:debian_linux:postgresql-contrib-9.4, p-cpe:/a:debian:debian_linux:postgresql-doc-9.4, p-cpe:/a:debian:debian_linux:postgresql-plperl-9.4, p-cpe:/a:debian:debian_linux:postgresql-plpython-9.4, p-cpe:/a:debian:debian_linux:postgresql-plpython3-9.4, p-cpe:/a:debian:debian_linux:postgresql-pltcl-9.4, p-cpe:/a:debian:debian_linux:postgresql-server-dev-9.4, cpe:/o:debian:debian_linux:8.0

必要的 KB 項目: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2019/8/9

弱點發布日期: 2019/10/29

參考資訊

CVE: CVE-2019-10208

IAVB: 2019-B-0072-S