公告ID(KYSA-202504-1042)
公告ID:KYSA-202504-1042
公告摘要:postgresql安全漏洞
等級(jí):重要
發(fā)布日期:2025-04-01
詳細(xì)介紹
1.修復(fù)的漏洞
·CVE-2025-1094
描述:PostgreSQL是PostgreSQL組織的一套自由的對(duì)象關(guān)系型數(shù)據(jù)庫管理系統(tǒng)。該系統(tǒng)支持大部分SQL標(biāo)準(zhǔn)并且提供了許多其他特性,例如外鍵、觸發(fā)器、視圖等。
PostgreSQL存在安全漏洞,該漏洞源于libpq中存在引號(hào)語法中和不當(dāng),會(huì)導(dǎo)致SQL注入。
2.受影響的軟件包
·銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 HPC
·aarch64架構(gòu):
postgresql-llvmjit、postgresql-private-libs、postgresql、postgresql-plperl、postgresql-plpython3、postgresql-docs、postgresql-static、postgresql-pltcl、postgresql-contrib、postgresql-test-rpm-macros、postgresql-server-devel、postgresql-private-devel、postgresql-test、postgresql-server
·x86_64架構(gòu):
postgresql-llvmjit、postgresql-private-libs、postgresql、postgresql-plperl、postgresql-plpython3、postgresql-docs、postgresql-static、postgresql-pltcl、postgresql-contrib、postgresql-test-rpm-macros、postgresql-server-devel、postgresql-private-devel、postgresql-test、postgresql-server
·銀河麒麟云底座操作系統(tǒng) V10
·aarch64架構(gòu):
postgresql-llvmjit、postgresql-private-libs、postgresql、postgresql-plperl、postgresql-plpython3、postgresql-static、postgresql-docs、postgresql-pltcl、postgresql-contrib、postgresql-test-rpm-macros、postgresql-server-devel、postgresql-private-devel、postgresql-test、postgresql-server
·x86_64架構(gòu):
postgresql-llvmjit、postgresql-private-libs、postgresql、postgresql-plperl、postgresql-plpython3、postgresql-docs、postgresql-pltcl、postgresql-contrib、postgresql-test-rpm-macros、postgresql-server-devel、postgresql-server、postgresql-private-devel、postgresql-test、postgresql-static
3.軟件包修復(fù)版本
·銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 HPC (aarch64)
postgresql-13.20-1.p01.ky10h或以上版本
postgresql-plpython3-13.20-1.p01.ky10h或以上版本
postgresql-llvmjit-13.20-1.p01.ky10h或以上版本
postgresql-static-13.20-1.p01.ky10h或以上版本
postgresql-test-13.20-1.p01.ky10h或以上版本
postgresql-plperl-13.20-1.p01.ky10h或以上版本
postgresql-pltcl-13.20-1.p01.ky10h或以上版本
postgresql-server-devel-13.20-1.p01.ky10h或以上版本
postgresql-docs-13.20-1.p01.ky10h或以上版本
postgresql-server-13.20-1.p01.ky10h或以上版本
postgresql-contrib-13.20-1.p01.ky10h或以上版本
postgresql-test-rpm-macros-13.20-1.p01.ky10h或以上版本
postgresql-private-devel-13.20-1.p01.ky10h或以上版本
postgresql-private-libs-13.20-1.p01.ky10h或以上版本
·銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 HPC (x86_64)
postgresql-13.20-1.p01.ky10h或以上版本
postgresql-llvmjit-13.20-1.p01.ky10h或以上版本
postgresql-plpython3-13.20-1.p01.ky10h或以上版本
postgresql-static-13.20-1.p01.ky10h或以上版本
postgresql-test-13.20-1.p01.ky10h或以上版本
postgresql-plperl-13.20-1.p01.ky10h或以上版本
postgresql-pltcl-13.20-1.p01.ky10h或以上版本
postgresql-server-devel-13.20-1.p01.ky10h或以上版本
postgresql-docs-13.20-1.p01.ky10h或以上版本
postgresql-server-13.20-1.p01.ky10h或以上版本
postgresql-contrib-13.20-1.p01.ky10h或以上版本
postgresql-test-rpm-macros-13.20-1.p01.ky10h或以上版本
postgresql-private-devel-13.20-1.p01.ky10h或以上版本
postgresql-private-libs-13.20-1.p01.ky10h或以上版本
·銀河麒麟云底座操作系統(tǒng) V10 (aarch64)
postgresql-13.20-1.p01.ky10h或以上版本
postgresql-llvmjit-13.20-1.p01.ky10h或以上版本
postgresql-plpython3-13.20-1.p01.ky10h或以上版本
postgresql-static-13.20-1.p01.ky10h或以上版本
postgresql-test-13.20-1.p01.ky10h或以上版本
postgresql-plperl-13.20-1.p01.ky10h或以上版本
postgresql-pltcl-13.20-1.p01.ky10h或以上版本
postgresql-server-devel-13.20-1.p01.ky10h或以上版本
postgresql-server-13.20-1.p01.ky10h或以上版本
postgresql-docs-13.20-1.p01.ky10h或以上版本
postgresql-contrib-13.20-1.p01.ky10h或以上版本
postgresql-test-rpm-macros-13.20-1.p01.ky10h或以上版本
postgresql-private-devel-13.20-1.p01.ky10h或以上版本
postgresql-private-libs-13.20-1.p01.ky10h或以上版本
·銀河麒麟云底座操作系統(tǒng) V10 (x86_64)
postgresql-13.20-1.p01.ky10h或以上版本
postgresql-llvmjit-13.20-1.p01.ky10h或以上版本
postgresql-plpython3-13.20-1.p01.ky10h或以上版本
postgresql-static-13.20-1.p01.ky10h或以上版本
postgresql-test-13.20-1.p01.ky10h或以上版本
postgresql-plperl-13.20-1.p01.ky10h或以上版本
postgresql-pltcl-13.20-1.p01.ky10h或以上版本
postgresql-server-devel-13.20-1.p01.ky10h或以上版本
postgresql-docs-13.20-1.p01.ky10h或以上版本
postgresql-server-13.20-1.p01.ky10h或以上版本
postgresql-contrib-13.20-1.p01.ky10h或以上版本
postgresql-test-rpm-macros-13.20-1.p01.ky10h或以上版本
postgresql-private-devel-13.20-1.p01.ky10h或以上版本
postgresql-private-libs-13.20-1.p01.ky10h或以上版本
4.修復(fù)方法
方法一:配置源進(jìn)行升級(jí)安裝
1.打開軟件包源配置文件,根據(jù)倉庫地址進(jìn)行修改。
倉庫源地址:
銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 HPC
aarch64:https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/
x86_64:https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/
銀河麒麟云底座操作系統(tǒng) V10
aarch64:https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/
x86_64:https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/
2.配置完成后執(zhí)行更新命令進(jìn)行升級(jí),命令如下:
yum update Packagename
方法二:下載安裝包進(jìn)行升級(jí)安裝
通過軟件包地址下載軟件包,使用軟件包升級(jí)命令根據(jù)受影響的軟件包
列表進(jìn)行升級(jí)安裝, 命令如下:
yum install Packagename
3.升級(jí)完成后是否需要重啟服務(wù)或操作系統(tǒng):
CVE-2025-1094:無需重啟操作系統(tǒng)與服務(wù)即可使漏洞修復(fù)生效。
5.軟件包下載地址
·銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 HPC
postgresql(aarch64)軟件包下載地址:
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-private-devel-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-private-libs-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-pltcl-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-plpython3-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-contrib-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-plperl-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-llvmjit-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-docs-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-test-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-server-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-test-rpm-macros-13.20-1.p01.ky10h.noarch.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-static-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/postgresql-server-devel-13.20-1.p01.ky10h.aarch64.rpm
postgresql(x86_64)軟件包下載地址:
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-docs-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-contrib-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-private-libs-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-llvmjit-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-private-devel-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-plpython3-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-pltcl-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-plperl-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-server-devel-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-server-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-static-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-test-rpm-macros-13.20-1.p01.ky10h.noarch.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/postgresql-test-13.20-1.p01.ky10h.x86_64.rpm
·銀河麒麟云底座操作系統(tǒng) V10
postgresql(aarch64)軟件包下載地址:
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-static-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-server-devel-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-contrib-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-server-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-plperl-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-llvmjit-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-docs-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-private-libs-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-plpython3-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-private-devel-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-pltcl-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-test-13.20-1.p01.ky10h.aarch64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/postgresql-test-rpm-macros-13.20-1.p01.ky10h.noarch.rpm
postgresql(x86_64)軟件包下載地址:
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-docs-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-test-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-llvmjit-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-contrib-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-pltcl-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-static-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-plpython3-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-plperl-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-server-devel-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-private-devel-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-server-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-private-libs-13.20-1.p01.ky10h.x86_64.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/postgresql-test-rpm-macros-13.20-1.p01.ky10h.noarch.rpm
注:其他相關(guān)依賴包請(qǐng)到相同目錄下載
6.修復(fù)驗(yàn)證
使用軟件包查詢命令,查看相關(guān)軟件包版本是否與修復(fù)版本一致,如果版本一致,則說明修復(fù)成功。
sudo rpm -qa | grep Packagename