一、漏洞信息
漏洞编号:CVE-2024-37891
漏洞归属组件:python-pip
漏洞归属的版本:20.2.2,20.3.3,21.3.1,22.3.1,23.1.2,23.3.1
CVSS V3.0分值:
BaseScore:4.4 Medium
Vector:CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
漏洞简述:
urllib3 is a user-friendly HTTP client library for Python. When using urllib3 s proxy support with ProxyManager
, the Proxy-Authorization
header is only sent to the configured proxy, as expected. However, when sending HTTP requests without using urllib3 s proxy support, it s possible to accidentally configure the Proxy-Authorization
header even though it won t have any effect as the request is not using a forwarding proxy or a tunneling proxy. In those cases, urllib3 doesn t treat the Proxy-Authorization
HTTP header as one carrying authentication material and thus doesn t strip the header on cross-origin redirects. Because this is a highly unlikely scenario, we believe the severity of this vulnerability is low for almost all users. Out of an abundance of caution urllib3 will automatically strip the Proxy-Authorization
header during cross-origin redirects to avoid the small chance that users are doing this on accident. Users should use urllib3 s proxy support or disable automatic redirects to achieve safe processing of the Proxy-Authorization
header, but we still decided to strip the header by default in order to further protect users who aren t using the correct approach. We believe the number of usages affected by this advisory is low. It requires all of the following to be true to be exploited: 1. Setting the Proxy-Authorization
header without using urllib3 s built-in proxy support. 2. Not disabling HTTP redirects. 3. Either not using an HTTPS origin server or for the proxy or target origin to redirect to a malicious origin. Users are advised to update to either version 1.26.19 or version 2.2.2. Users unable to upgrade may use the Proxy-Authorization
header with urllib3 s ProxyManager
, disable HTTP redirects using redirects=False
when sending requests, or not user the Proxy-Authorization
header as mitigations.
漏洞公开时间:2024-06-18 04:15:13
漏洞创建时间:2024-06-20 16:46:12
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2024-37891
漏洞分析指导链接:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
openBrain开源漏洞感知系统
漏洞补丁信息:
影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 |
---|---|---|---|---|
https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e | security-advisories.github.com | |||
https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e | suse_bugzilla | |||
https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e | redhat_bugzilla | |||
https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e | github_advisory | |||
https://github.com/urllib3/urllib3/commit/40b6d1605814dd1db0a46e202d6e56f2e4c9a468 | github_advisory | |||
python-pip | https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e | ubuntu | ||
https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e (2.2.2) | ubuntu |
二、漏洞分析结构反馈
影响性分析说明:
当将urllib3的代理支持与ProxyManager一起使用时,Proxy-Authorization标头只会发送到配置的代理,正如预期的。但是,当发送HTTP请求而不使用urllib3的代理支持时,可能会意外配置Proxy-Authorization标头,即使它不会有任何效果,因为请求没有使用转发代理或隧道代理。在这些情况下,urllib3不会将Proxy-Authorization HTTP标头视为携带身份验证材料的标头,因此不会在跨域重定向时剥离该标头;
openEuler评分:
4.4
Vector:CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
受影响版本排查(受影响/不受影响):
1.master(23.3.1):受影响
2.openEuler-20.03-LTS-SP4(20.2.2):受影响
3.openEuler-22.03-LTS-SP1(21.3.1):受影响
4.openEuler-22.03-LTS-SP3(21.3.1):受影响
5.openEuler-22.03-LTS-SP4(21.3.1):受影响
6.openEuler-24.03-LTS(23.3.1):受影响
7.openEuler-24.03-LTS-Next(23.3.1):受影响
修复是否涉及abi变化(是/否):
1.master(23.3.1):否
2.openEuler-20.03-LTS-SP4(20.2.2):否
3.openEuler-22.03-LTS-SP1(21.3.1):否
4.openEuler-22.03-LTS-SP3(21.3.1):否
5.openEuler-22.03-LTS-SP4(21.3.1):否
6.openEuler-24.03-LTS(23.3.1):否
7.openEuler-24.03-LTS-Next(23.3.1):否
三、漏洞修复
安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-1869
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
参考网址 | 关联pr | 状态 | 补丁链接 |
---|---|---|---|
https://nvd.nist.gov/vuln/detail/CVE-2024-37891 | None | None | https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e |
https://ubuntu.com/security/CVE-2024-37891 | None | None | https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e https://discourse.ubuntu.com/c/ubuntu-pro |
https://www.opencve.io/cve/CVE-2024-37891 | None | None | https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e |
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2024-37891 | None | None | https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e |
https://security-tracker.debian.org/tracker/CVE-2024-37891 | None | None | https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e |
说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用CVE补丁工具。
若补丁不准确,烦请在此issue下评论 '/report-patch 参考网址 补丁链接1,补丁链接2' 反馈正确信息,便于我们不断优化工具,不胜感激。
如 /report-patch https://security-tracker.debian.org/tracker/CVE-2021-3997 https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1
影响性分析说明:
当将urllib3的代理支持与ProxyManager一起使用时,Proxy-Authorization标头只会发送到配置的代理,正如预期的。但是,当发送HTTP请求而不使用urllib3的代理支持时,可能会意外配置Proxy-Authorization标头,即使它不会有任何效果,因为请求没有使用转发代理或隧道代理。在这些情况下,urllib3不会将Proxy-Authorization HTTP标头视为携带身份验证材料的标头,因此不会在跨域重定向时剥离该标头;
openEuler评分: (评分和向量)
4.4 CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
受影响版本排查(受影响/不受影响):
1.master(23.3.1):受影响
2.openEuler-20.03-LTS-SP4(20.2.2):受影响
3.openEuler-22.03-LTS-SP1(21.3.1):受影响
4.openEuler-22.03-LTS-SP3(21.3.1):受影响
5.openEuler-22.03-LTS-SP4(21.3.1):受影响
6.openEuler-24.03-LTS(23.3.1):受影响
7.openEuler-24.03-LTS-Next(23.3.1):受影响
修复是否涉及abi变化(是/否):
1.master(23.3.1):否
2.openEuler-20.03-LTS-SP4(20.2.2):否
3.openEuler-22.03-LTS-SP1(21.3.1):否
4.openEuler-22.03-LTS-SP3(21.3.1):否
5.openEuler-22.03-LTS-SP4(21.3.1):否
6.openEuler-24.03-LTS(23.3.1):否
7.openEuler-24.03-LTS-Next(23.3.1):否
登录 后才可以发表评论
FileDragTip