CVE-2022-29217Key confusion through non-blocklisted public key formats in PyJWT
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.
What to do
Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | pyjwt | Fixed | 2.3.0-1ubuntu0.1 | UBUNTU-CVE-2022-29217 |
| Ubuntu 20.04 | pyjwt | Fixed | 1.7.1-2ubuntu2.1 | UBUNTU-CVE-2022-29217 |
| Ubuntu 18.04 | pyjwt | Fixed | 1.5.3+ds1-1ubuntu0.1 | UBUNTU-CVE-2022-29217 |
| Debian 14 | pyjwt | Fixed | 2.4.0-1 | DEBIAN-CVE-2022-29217 |
| Debian 13 | pyjwt | Fixed | 2.4.0-1 | DEBIAN-CVE-2022-29217 |
| Debian 12 | pyjwt | Fixed | 2.4.0-1 | DEBIAN-CVE-2022-29217 |
| Red Hat Enterprise Linux 9 | fence-agents | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-aliyun | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-all | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-amt-ws | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-apc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-apc-snmp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-aws | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-azure-arm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-bladecenter | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-brocade | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-cisco-mds | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-cisco-ucs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-common | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-compute | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-drac5 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-eaton-snmp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-emerson | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-eps | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-gce | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-heuristics-ping | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-hpblade | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibm-powervs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibm-vpc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibmblade | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ifmib | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-moonshot | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-mp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-ssh | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo2 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-intelmodular | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ipdu | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-ipmilan | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-kdump | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-kubevirt | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-lpar | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-mpath | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-nutanix-ahv | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-openstack | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-redfish | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-rhevm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-rsa | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-rsb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-sbd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-scsi | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-virsh | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-vmware-rest | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-vmware-soap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-wti | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-agents-zvm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-virt | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-virtd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-virtd-cpg | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-virtd-libvirt | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-virtd-multicast | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-virtd-serial | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | fence-virtd-tcp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | ha-cloud-support | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | python-oauthlib | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-oauthlib | Not affected | ||
| Red Hat Enterprise Linux 8 | python-jwt | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | python3-jwt | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | python-adal | Not affected | ||
| Red Hat Enterprise Linux 7 | python-jwt | Not affected | ||
| Alpine Linux 3.24 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| Alpine Linux 3.23 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| Alpine Linux 3.22 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| Alpine Linux 3.21 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| Alpine Linux 3.20 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| Alpine Linux 3.19 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| Alpine Linux 3.18 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| Alpine Linux 3.17 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| Alpine Linux 3.16 | py3-jwt | Fixed | 2.4.0-r0 | ALPINE-CVE-2022-29217 |
| PyPI library | pyjwt | Fixed | 2.4.0 | GHSA-ffqj-6fqr-9h24 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jpadilla pyjwt: affected: >= 1.5.0, < 2.4.0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24
- https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc
- https://github.com/jpadilla/pyjwt/releases/tag/2.4.0
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNX/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.