Vulnerability Name:

CVE-2022-29217 (CCN-227222)

Assigned:2022-05-13
Published:2022-05-13
Updated:2022-06-07
Summary:PyJWT is a Python implementation of RFC 7519. PyJWT supports multiple different JWT signing algorithms. With JWT, an attacker submitting the JWT token can choose the used signing algorithm. The PyJWT library requires that the application chooses what algorithms are supported. The application can specify `jwt.algorithms.get_default_algorithms()` to get support for all algorithms, or specify a single algorithm. The issue is not that big as `algorithms=jwt.algorithms.get_default_algorithms()` has to be used. Users should upgrade to v2.4.0 to receive a patch for this issue. As a workaround, always be explicit with the algorithms that are accepted and expected when decoding.
CVSS v3 Severity:7.5 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
6.5 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): High
Availibility (A): None
7.4 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N)
6.4 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): None
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
7.1 High (CCN CVSS v2 Vector: AV:N/AC:H/Au:N/C:C/I:C/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): None
Vulnerability Type:CWE-327
Vulnerability Consequences:Bypass Security
References:Source: MITRE
Type: CNA
CVE-2022-29217

Source: XF
Type: UNKNOWN
pyjwt-cve202229217-sec-bypass(227222)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc

Source: MISC
Type: Release Notes, Third Party Advisory
https://github.com/jpadilla/pyjwt/releases/tag/2.4.0

Source: CCN
Type: PyJWT GIT Repository
Key confusion through non-blocklisted public key formats

Source: CONFIRM
Type: Issue Tracking, Third Party Advisory
https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-4ae9110f51

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-3cf456dc20

Source: CCN
Type: IBM Security Bulletin 6603697 (Watson Discovery)
IBM Watson Discovery for IBM Cloud Pak for Data affected by vulnerability in PyJWT

Source: CCN
Type: IBM Security Bulletin 6622033 (Cloud Pak for Watson AIOps)
Multiple Vulnerabilities in Cloud Pak for Watson AIOPs

Source: CCN
Type: IBM Security Bulletin 6832428 (Db2 On Openshift)
Multiple vulnerabilities affect IBM Db2 On Openshift, IBM Db2 on Cloud Pak for Data and Db2 Warehouse on Cloud Pak for Data

Source: CCN
Type: IBM Security Bulletin 7005455 (Spectrum Discover)
IBM Spectrum Discover is vulnerable to multiple vulnerabilities

Source: CCN
Type: Mend Vulnerability Database
CVE-2022-29217

Vulnerable Configuration:Configuration 1:
  • cpe:/a:pyjwt_project:pyjwt:*:*:*:*:*:*:*:* (Version >= 1.5.0 and < 2.4.0)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:36:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:pyjwt_project:pyjwt:1.5.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:7764
    P
    python3-PyJWT-2.4.0-150200.3.6.2 on GA media (Moderate)
    2023-06-12
    oval:org.opensuse.security:def:119255
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:94050
    P
    (Important)
    2022-07-14
    oval:org.opensuse.security:def:118380
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:93318
    P
    (Important)
    2022-07-14
    oval:org.opensuse.security:def:119446
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:94262
    P
    (Important)
    2022-07-14
    oval:org.opensuse.security:def:118760
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:93476
    P
    (Important)
    2022-07-14
    oval:org.opensuse.security:def:119631
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:94471
    P
    (Important)
    2022-07-14
    oval:org.opensuse.security:def:3635
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:118950
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:93836
    P
    (Important)
    2022-07-14
    oval:org.opensuse.security:def:581
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:95265
    P
    Security update for python-PyJWT (Important)
    2022-07-14
    oval:org.opensuse.security:def:93158
    P
    (Important)
    2022-07-14
    oval:org.opensuse.security:def:933
    P
    Security update for python-PyJWT (Important) (in QA)
    2022-06-21
    oval:org.opensuse.security:def:1529
    P
    Security update for python-PyJWT (Important) (in QA)
    2022-06-21
    BACK
    pyjwt_project pyjwt *
    fedoraproject fedora 35
    fedoraproject fedora 36
    pyjwt_project pyjwt 1.5.0