Name | CVE-2022-29217 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1011747 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
pyjwt (PTS) | jessie, jessie (lts) | 0.2.1-1+deb8u2 | fixed |
stretch (security), stretch (lts), stretch | 1.4.2-1+deb9u1 | fixed | |
buster | 1.7.0-2 | fixed | |
bullseye | 1.7.1-2 | fixed | |
bookworm | 2.6.0-1 | fixed | |
sid, trixie | 2.7.0-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
pyjwt | source | jessie | (not affected) | |||
pyjwt | source | stretch | (not affected) | |||
pyjwt | source | buster | (not affected) | |||
pyjwt | source | bullseye | (not affected) | |||
pyjwt | source | (unstable) | 2.4.0-1 | 1011747 |
[bullseye] - pyjwt <not-affected> (Vulnerable code not present)
[buster] - pyjwt <not-affected> (Vulnerable code not present)
[stretch] - pyjwt <not-affected> (Vulnerable code not present)
https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24
https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc (2.4.0)
https://github.com/jpadilla/pyjwt/releases/tag/2.4.0
[jessie] - pyjwt <not-affected> (jwt.algorithms.get_default_algorithms() not present)