Key confusion through non-blocklisted public key formats in PyJWT
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pyjwtPyPI | >= 1.5.0, < 2.4.0 | 2.4.0 |
Affected products
35- ghsa-coords34 versionspkg:pypi/pyjwtpkg:rpm/opensuse/python-PyJWT&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/python-PyJWT&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/python-PyJWT&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-PyJWT&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/python-PyJWT&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/python-PyJWT&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP1pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP2pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCLpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/python-PyJWT&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/python-PyJWT&distro=SUSE%20Manager%20Proxy%204.1pkg:rpm/suse/python-PyJWT&distro=SUSE%20Manager%20Proxy%204.2pkg:rpm/suse/python-PyJWT&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1pkg:rpm/suse/python-PyJWT&distro=SUSE%20Manager%20Server%204.1pkg:rpm/suse/python-PyJWT&distro=SUSE%20Manager%20Server%204.2
>= 1.5.0, < 2.4.0+ 33 more
- (no CPE)range: >= 1.5.0, < 2.4.0
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 2.10.1-2.1
- (no CPE)range: < 1.7.1-150100.6.7.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 2.4.0-150200.3.6.2
- (no CPE)range: < 1.7.1-150100.6.7.1
- (no CPE)range: < 1.7.1-150100.6.7.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 2.4.0-150200.3.6.2
- (no CPE)range: < 2.4.0-150200.3.6.2
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 1.5.3-3.16.1
- (no CPE)range: < 1.5.3-150000.3.3.1
- (no CPE)range: < 1.7.1-150100.6.7.1
- (no CPE)range: < 1.7.1-150100.6.7.1
- (no CPE)range: < 2.4.0-150200.3.6.2
- (no CPE)range: < 1.7.1-150100.6.7.1
- (no CPE)range: < 1.7.1-150100.6.7.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 2.4.0-150200.3.6.2
- (no CPE)range: < 1.7.1-150100.6.7.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 2.4.0-150200.3.6.2
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 2.4.0-150200.3.6.2
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 1.7.1-150200.3.3.1
- (no CPE)range: < 2.4.0-150200.3.6.2
Patches
Vulnerability mechanics
References
10- github.com/advisories/GHSA-ffqj-6fqr-9h24ghsaADVISORY
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNX/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/mitrevendor-advisoryx_refsource_FEDORA
- nvd.nist.gov/vuln/detail/CVE-2022-29217ghsaADVISORY
- github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fcghsax_refsource_MISCWEB
- github.com/jpadilla/pyjwt/releases/tag/2.4.0ghsax_refsource_MISCWEB
- github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24ghsax_refsource_CONFIRMWEB
- github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2022-202.yamlghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNXghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAOghsaWEB
News mentions
0No linked articles in our index yet.