一、漏洞信息
漏洞编号:CVE-2024-51744
漏洞归属组件:python-jwt
漏洞归属的版本:1.7.1,2.0.0,2.0.1,2.3.0,2.5.0,2.6.0,2.7.0,2.8.0,2.9.0
CVSS V3.0分值:
BaseScore:3.1 Low
Vector:CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
漏洞简述:
golang-jwt is a Go implementation of JSON Web Tokens. Unclear documentation of the error behavior in ParseWithClaims
can lead to situation where users are potentially not checking errors in the way they should be. Especially, if a token is both expired and invalid, the errors returned by ParseWithClaims
return both error codes. If users only check for the jwt.ErrTokenExpired
using error.Is
, they will ignore the embedded jwt.ErrTokenSignatureInvalid
and thus potentially accept invalid tokens. A fix has been back-ported with the error handling logic from the v5
branch to the v4
branch. In this logic, the ParseWithClaims
function will immediately return in dangerous situations (e.g., an invalid signature), limiting the combined errors only to situations where the signature is valid, but further validation failed (e.g., if the signature is valid, but is expired AND has the wrong audience). This fix is part of the 4.5.1 release. We are aware that this changes the behaviour of an established function and is not 100 % backwards compatible, so updating to 4.5.1 might break your code. In case you cannot update to 4.5.0, please make sure that you are properly checking for all errors ( dangerous ones first), so that you are not running in the case detailed above.
漏洞公开时间:2024-11-05 06:15:03
漏洞创建时间:2024-11-06 00:52:04
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2024-51744
漏洞分析指导链接:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
openBrain开源漏洞感知系统
漏洞补丁信息:
二、漏洞分析结构反馈
影响性分析说明:
openEuler评分:
受影响版本排查(受影响/不受影响):
1.master(2.9.0):
2.openEuler-20.03-LTS-SP4(1.7.1):
3.openEuler-22.03-LTS-SP1(2.3.0):
4.openEuler-22.03-LTS-SP3(2.3.0):
5.openEuler-22.03-LTS-SP4(2.3.0):
6.openEuler-24.03-LTS(2.8.0):
7.openEuler-24.03-LTS-Next(2.8.0):
修复是否涉及abi变化(是/否):
1.master(2.9.0):
2.openEuler-20.03-LTS-SP4(1.7.1):
3.openEuler-22.03-LTS-SP1(2.3.0):
4.openEuler-22.03-LTS-SP3(2.3.0):
5.openEuler-22.03-LTS-SP4(2.3.0):
6.openEuler-24.03-LTS(2.8.0):
7.openEuler-24.03-LTS-Next(2.8.0):
原因说明:
1.master(2.9.0):
2.openEuler-20.03-LTS-SP4(1.7.1):
3.openEuler-22.03-LTS-SP1(2.3.0):
4.openEuler-22.03-LTS-SP3(2.3.0):
5.openEuler-22.03-LTS-SP4(2.3.0):
6.openEuler-24.03-LTS(2.8.0):
7.openEuler-24.03-LTS-Next(2.8.0):
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论
FileDragTip