• 公告ID (KylinSec-SA-2023-1857)

摘要:

python-urllib3 security update

安全等级: Medium

公告ID: KylinSec-SA-2023-1857

发布日期: 2024年10月31日

关联CVE: CVE-2023-45803  

  • 详细介绍

1. 漏洞描述

   

Sanity-friendly HTTP client for Python

Security Fix(es):

urllib3 is a user-friendly HTTP client library for Python. urllib3 previously wouldn't remove the HTTP request body when an HTTP redirect response using status 301, 302, or 303 after the request had its method changed from one that could accept a request body (like `POST`) to `GET` as is required by HTTP RFCs. Although this behavior is not specified in the section for redirects, it can be inferred by piecing together information from different sections and we have observed the behavior in other major HTTP client implementations like curl and web browsers. Because the vulnerability requires a previously trusted service to become compromised in order to have an impact on confidentiality we believe the exploitability of this vulnerability is low. Additionally, many users aren't putting sensitive data in HTTP request bodies, if this is the case then this vulnerability isn't exploitable. Both of the following conditions must be true to be affected by this vulnerability: 1. Using urllib3 and submitting sensitive information in the HTTP request body (such as form data or JSON) and 2. The origin service is compromised and starts redirecting using 301, 302, or 303 to a malicious peer or the redirected-to service becomes compromised. This issue has been addressed in versions 1.26.18 and 2.0.7 and users are advised to update to resolve this issue. Users unable to update should disable redirects for services that aren't expecting to respond with redirects with `redirects=False` and disable automatic redirects with `redirects=False` and handle 301, 302, and 303 redirects manually by stripping the HTTP request body.
(CVE-2023-45803)

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2023-45803 KY3.4-4A python-urllib3 Fixed
CVE-2023-45803 KY3.4-5A python-urllib3 Fixed
CVE-2023-45803 KY3.5.1 python-urllib3 Fixed
CVE-2023-45803 KY3.5.2 python-urllib3 Fixed

3. 影响组件

    python-urllib3

4. 修复版本

   

KY3.5.1

软件名称 架构 版本号
python3-urllib3 noarch 1.26.7-8.kb1.ky3_5

KY3.4-4A

软件名称 架构 版本号
python3-urllib3 noarch 1.25.9-10.kb1.ky3_4
python2-urllib3 noarch 1.25.9-10.kb1.ky3_4

KY3.4-5A

软件名称 架构 版本号
python3-urllib3 noarch 1.25.9-10.kb1.ky3_4
python2-urllib3 noarch 1.25.9-10.kb1.ky3_4

KY3.5.2

软件名称 架构 版本号
python3-urllib3 noarch 1.26.12-6.ky3_5

5. 修复方法


方法一:下载安装包进行升级安装
1、通过下载链接下载需要升级的升级包保存,如 xxx.rpm
2、通过rpm命令升级,如 rpm -Uvh xxx.rpm

方法二:通过软件源进行升级安装
1、保持能够连接上互联网
2、通过yum命令升级指定的包,如 yum install 包名

6. 下载链接

   

KY3.5.1:

x86_64:

     python3-urllib3   

aarch64:

     python3-urllib3   

KY3.4-4A:

x86_64:

     python3-urllib3   

     python2-urllib3   

aarch64:

     python3-urllib3   

     python2-urllib3   

KY3.4-5A:

x86_64:

     python3-urllib3   

     python2-urllib3   

aarch64:

     python3-urllib3   

     python2-urllib3   

KY3.5.2:

x86_64:

     python3-urllib3   

aarch64:

     python3-urllib3   

上一篇:KylinSec-SA-2023-1855 下一篇:KylinSec-SA-2023-1858