cve.bz

CVE-2022-29217

7.5 highEPSS 1.4%Fix available

High (7.5). EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in pyjwt 2.4.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-25. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-327 Use of a Broken or Risky Cryptographic Algorithm
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-29217 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29217?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29217?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-29217 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pyjwt_project:pyjwtfrom 1.5.0 before 2.4.0
fedoraproject:fedora35
fedoraproject:fedora36

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-ffqj-6fqr-9h24PyPIpyjwt>=1.5.0 <2.4.02.4.0
PYSEC-2022-202PyPIpyjwt>=1.5.0 <2.4.02.4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14pyjwt2.4.0-1DEBIAN-CVE-2022-29217
Ubuntu18.04:LTSpyjwt1.5.3+ds1-1ubuntu0.1UBUNTU-CVE-2022-29217 USN-5526-1
Ubuntu20.04:LTSpyjwt1.7.1-2ubuntu2.1UBUNTU-CVE-2022-29217 USN-5526-1
Ubuntu22.04:LTSpyjwt2.3.0-1ubuntu0.1UBUNTU-CVE-2022-29217 USN-5526-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 5 morepython-PyJWT1.7.1-150100.6.7.1SUSE-SU-2022:2403-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 morepython-PyJWT2.4.0-150200.3.6.2SUSE-SU-2023:0794-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 9 morepython-PyJWT1.7.1-150200.3.3.1SUSE-SU-2022:2402-1
SUSELinux Enterprise Module for Public Cloud 12python-PyJWT1.5.3-3.16.1SUSE-SU-2022:2401-1
SUSELinux Enterprise Module for Public Cloud 15python-PyJWT1.5.3-150000.3.3.1SUSE-SU-2022:3545-1
openSUSELeap 15.3, Leap 15.4python-PyJWT1.7.1-150200.3.3.1SUSE-SU-2022:2402-1
openSUSELeap 15.4python-PyJWT2.4.0-150200.3.6.2SUSE-SU-2023:0794-1
openSUSETumbleweedpython-PyJWT2.10.1-2.1openSUSE-SU-2025:14987-1
Alpinev3.16, v3.17, v3.18 and 6 morepy3-jwt2.4.0-r0ALPINE-CVE-2022-29217
Azure Linux2python-jwt2.4.0-1AZL-9852

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2automation-controllerAffected
Red Hat Ansible Automation Platform 2python-pulp-containerAffected
Red Hat Ansible Automation Platform 2python-pyjwtAffected
Red Hat Ceph Storage 4python-adalWill not fix
Red Hat Ceph Storage 4python-jwtAffected
Red Hat Ceph Storage 5python-adalWill not fix
Red Hat Enterprise Linux 7python-adalNot affected
Red Hat Enterprise Linux 7python-jwtNot affected
Red Hat Enterprise Linux 8python-jwtWill not fix
Red Hat Enterprise Linux 9fence-agentsWill not fix
Red Hat Enterprise Linux 9python-oauthlibNot affected
Red Hat Openshift Container Storage 4python-adalOut of support scope
Red Hat Openshift Data Foundation 4python-adalNot affected
Red Hat OpenStack Platform 13 (Queens)python-jwtOut of support scope
Red Hat OpenStack Platform 16.1openstack-mistralNot affected
Red Hat OpenStack Platform 16.1python-adalNot affected
Red Hat OpenStack Platform 16.2openstack-keystoneNot affected
Red Hat OpenStack Platform 16.2openstack-mistralNot affected
Red Hat OpenStack Platform 16.2python-adalNot affected
Red Hat Quay 3quay/quay-rhel8Affected
3 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-29217.

Attack patterns (CAPEC)

  • CAPEC-20 Encryption Brute Forcing Likelihood: Low · Severity: Low
  • CAPEC-97 Cryptanalysis Likelihood: Low · Severity: Very High
  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-473 Signature Spoof
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High
  • CAPEC-608 Cryptanalysis of Cellular Encryption Severity: High
  • CAPEC-614 Rooting SIM Cards Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON