公告ID(KYSA-202105-1007)
公告ID:KYSA-202105-1007
公告摘要:postgresql安全漏洞
等級:Important
發布日期:2021-05-01
詳細介紹
1.修復的CVE
·CVE-2020-25694
描述:PostgreSQL是PostgreSQL組織的一套自由的對象關系型數據庫管理系統。該漏洞源于如果丟棄了與安全性相關的參數(例如channel_binding,sslmode,requirepeer,gssencmode),則攻擊者就有機會完成MITM攻擊或觀察明文傳輸。
·CVE-2020-25695
描述:PostgreSQL是Postgresql組織的一套自由的對象關系型數據庫管理系統。攻擊者可利用該漏洞有權在至少一個模式中創建非臨時對象,可以以超級用戶的身份執行任意SQL函數。
2.受影響的軟件包
·中標麒麟高級服務器操作系統 V7
·aarch64架構:
postgresql、postgresql-contrib、postgresql-devel、postgresql-docs、postgresql-libs、postgresql-plperl、postgresql-plpython、postgresql-pltcl、postgresql-server、postgresql-static、postgresql-test、postgresql-upgrade
·x86_64架構:
postgresql、postgresql-contrib、postgresql-devel、postgresql-docs、postgresql-libs、postgresql-plperl、postgresql-plpython、postgresql-pltcl、postgresql-server、postgresql-static、postgresql-test、postgresql-upgrade
·銀河麒麟高級服務器操作系統 V10
·aarch64架構:
postgresql、postgresql-contrib、postgresql-devel、postgresql-docs、postgresql-libs、postgresql-plperl、postgresql-plpython、postgresql-pltcl、postgresql-server、postgresql-static、postgresql-test、postgresql-upgrade
·x86_64架構:
postgresql、postgresql-contrib、postgresql-devel、postgresql-docs、postgresql-libs、postgresql-plperl、postgresql-plpython、postgresql-pltcl、postgresql-server、postgresql-static、postgresql-test、postgresql-upgrade
3.軟件包修復版本
·中標麒麟高級服務器操作系統 V7 (aarch64、x86_64)
postgresql-9.2.24-6.el7_9或以上版本
postgresql-contrib-9.2.24-6.el7_9或以上版本
postgresql-devel-9.2.24-6.el7_9或以上版本
postgresql-docs-9.2.24-6.el7_9或以上版本
postgresql-libs-9.2.24-6.el7_9或以上版本
postgresql-plperl-9.2.24-6.el7_9或以上版本
postgresql-plpython-9.2.24-6.el7_9或以上版本
postgresql-pltcl-9.2.24-6.el7_9或以上版本
postgresql-server-9.2.24-6.el7_9或以上版本
postgresql-static-9.2.24-6.el7_9或以上版本
postgresql-test-9.2.24-6.el7_9或以上版本
postgresql-upgrade-9.2.24-6.el7_9或以上版本
·銀河麒麟高級服務器操作系統 V10 (aarch64、x86_64)
postgresql-9.2.24-6.el7_9或以上版本
postgresql-contrib-9.2.24-6.el7_9或以上版本
postgresql-devel-9.2.24-6.el7_9或以上版本
postgresql-docs-9.2.24-6.el7_9或以上版本
postgresql-libs-9.2.24-6.el7_9或以上版本
postgresql-plperl-9.2.24-6.el7_9或以上版本
postgresql-plpython-9.2.24-6.el7_9或以上版本
postgresql-pltcl-9.2.24-6.el7_9或以上版本
postgresql-server-9.2.24-6.el7_9或以上版本
postgresql-static-9.2.24-6.el7_9或以上版本
postgresql-test-9.2.24-6.el7_9或以上版本
postgresql-upgrade-9.2.24-6.el7_9或以上版本
4.修復方法
方法一:配置源進行升級安裝
1.打開軟件包源配置文件,根據倉庫地址進行修改。
倉庫源地址:
中標麒麟高級服務器操作系統 V7
aarch64:https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/
x86_64:https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/
銀河麒麟高級服務器操作系統 V10
aarch64:https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/
x86_64:https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/
2.配置完成后執行更新命令進行升級,命令如下:
yum update Packagename
方法二:下載安裝包進行升級安裝
通過軟件包地址下載軟件包,使用軟件包升級命令根據受影響的軟件包
列表進行升級安裝, 命令如下:
yum install Packagename
3.升級完成后是否需要重啟服務或操作系統:
CVE-2020-25694:無需重啟操作系統與服務即可使漏洞修復生效。
CVE-2020-25695:無需重啟操作系統與服務即可使漏洞修復生效。
5.軟件包下載地址
·中標麒麟高級服務器操作系統 V7
postgresql(aarch64)軟件包下載地址:
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-contrib-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-devel-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-docs-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-libs-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-plperl-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-plpython-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-pltcl-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-server-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-static-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-test-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/aarch64/Packages/postgresql-upgrade-9.2.24-6.el7_9.aarch64.rpm
postgresql(x86_64)軟件包下載地址:
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-contrib-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-devel-9.2.24-6.el7_9.i686.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-devel-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-docs-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-libs-9.2.24-6.el7_9.i686.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-libs-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-plperl-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-plpython-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-pltcl-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-server-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-static-9.2.24-6.el7_9.i686.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-static-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-test-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V7/V7Update9/os/adv/lic/updates/x86_64/Packages/postgresql-upgrade-9.2.24-6.el7_9.x86_64.rpm
·銀河麒麟高級服務器操作系統 V10
postgresql(aarch64)軟件包下載地址:
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-contrib-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-devel-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-docs-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-libs-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-plperl-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-plpython-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-pltcl-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-server-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-static-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-test-9.2.24-6.el7_9.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/aarch64/Packages/postgresql-upgrade-9.2.24-6.el7_9.aarch64.rpm
postgresql(x86_64)軟件包下載地址:
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-contrib-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-devel-9.2.24-6.el7_9.i686.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-devel-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-docs-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-libs-9.2.24-6.el7_9.i686.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-libs-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-plperl-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-plpython-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-pltcl-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-server-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-static-9.2.24-6.el7_9.i686.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-static-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-test-9.2.24-6.el7_9.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/V10-ZJ/os/adv/lic/updates/x86_64/Packages/postgresql-upgrade-9.2.24-6.el7_9.x86_64.rpm
注:其他相關依賴包請到相同目錄下載
6.修復驗證
使用軟件包查詢命令,查看相關軟件包版本是否與修復版本一致,如果版本一致,則說明修復成功。
sudo rpm -qa | grep Packagename