公告ID(KYSA-202412-1093)
公告ID:KYSA-202412-1093
公告摘要:python-requests安全漏洞
等級(jí):中等
發(fā)布日期:2024-12-10
詳細(xì)介紹
1.修復(fù)的漏洞
·CVE-2024-1682
描述:Requests是Python基金會(huì)的一個(gè)優(yōu)雅而簡(jiǎn)單的HTTP庫(kù)。通過(guò)請(qǐng)求,您可以非常輕松地發(fā)送HTTP / 1.1請(qǐng)求。無(wú)需將查詢字符串手動(dòng)添加到您的URL,也無(wú)需對(duì)POST數(shù)據(jù)進(jìn)行表單編碼。
Requests存在安全漏洞,該漏洞源于在.rst留檔文件中引用了未認(rèn)領(lǐng)的Amazon S3存儲(chǔ)桶codconf,會(huì)導(dǎo)致數(shù)據(jù)完整性問(wèn)題、數(shù)據(jù)泄露等問(wèn)題。
2.受影響的軟件包
·銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 HPC
·aarch64架構(gòu):
python-requests-help、python3-requests
·x86_64架構(gòu):
python-requests-help、python3-requests
·銀河麒麟云底座操作系統(tǒng) V10
·aarch64架構(gòu):
python-requests-help、python3-requests
·x86_64架構(gòu):
python-requests-help、python3-requests
3.軟件包修復(fù)版本
·銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 HPC (aarch64、x86_64)
python3-requests-2.26.0-9.ky10h或以上版本
python-requests-help-2.26.0-9.ky10h或以上版本
·銀河麒麟云底座操作系統(tǒng) V10 (aarch64、x86_64)
python3-requests-2.26.0-9.ky10h或以上版本
python-requests-help-2.26.0-9.ky10h或以上版本
4.修復(fù)方法
方法一:配置源進(jìn)行升級(jí)安裝
1.打開(kāi)軟件包源配置文件,根據(jù)倉(cāng)庫(kù)地址進(jìn)行修改。
倉(cāng)庫(kù)源地址:
銀河麒麟高級(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í)安裝
通過(guò)軟件包地址下載軟件包,使用軟件包升級(jí)命令根據(jù)受影響的軟件包
列表進(jìn)行升級(jí)安裝, 命令如下:
yum install Packagename
3.升級(jí)完成后是否需要重啟服務(wù)或操作系統(tǒng):
CVE-2024-1682:無(wú)需重啟操作系統(tǒng)與服務(wù)即可使漏洞修復(fù)生效。
5.軟件包下載地址
·銀河麒麟高級(jí)服務(wù)器操作系統(tǒng) V10 HPC
python-requests(aarch64)軟件包下載地址:
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/python-requests-help-2.26.0-9.ky10h.noarch.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/aarch64/Packages/python3-requests-2.26.0-9.ky10h.noarch.rpm
python-requests(x86_64)軟件包下載地址:
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/python-requests-help-2.26.0-9.ky10h.noarch.rpm
https://update.cs2c.com.cn/NS/V10/HPC/os/adv/lic/updates/x86_64/Packages/python3-requests-2.26.0-9.ky10h.noarch.rpm
·銀河麒麟云底座操作系統(tǒng) V10
python-requests(aarch64)軟件包下載地址:
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/python3-requests-2.26.0-9.ky10h.noarch.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/aarch64/Packages/python-requests-help-2.26.0-9.ky10h.noarch.rpm
python-requests(x86_64)軟件包下載地址:
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/python3-requests-2.26.0-9.ky10h.noarch.rpm
https://update.cs2c.com.cn/NS/HOST/2309/os/adv/lic/updates/x86_64/Packages/python-requests-help-2.26.0-9.ky10h.noarch.rpm
注:其他相關(guān)依賴包請(qǐng)到相同目錄下載
6.修復(fù)驗(yàn)證
使用軟件包查詢命令,查看相關(guān)軟件包版本是否與修復(fù)版本一致,如果版本一致,則說(shuō)明修復(fù)成功。
sudo rpm -qa | grep Packagename