pyjwt: CVE-2022-29217 - Key confusion through non-blocklisted public key formats

Related Vulnerabilities: CVE-2022-29217  

Debian Bug report logs - #1011747
pyjwt: CVE-2022-29217 - Key confusion through non-blocklisted public key formats

version graph

Reported by: Neil Williams <codehelp@debian.org>

Date: Thu, 26 May 2022 09:45:01 UTC

Severity: important

Tags: security, upstream

Found in version pyjwt/2.3.0-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, codehelp@debian.org, team@security.debian.org, Debian Python Team <team+python@tracker.debian.org>:
Bug#1011747; Package src:pyjwt. (Thu, 26 May 2022 09:45:03 GMT) (full text, mbox, link).


Acknowledgement sent to Neil Williams <codehelp@debian.org>:
New Bug report received and forwarded. Copy sent to codehelp@debian.org, team@security.debian.org, Debian Python Team <team+python@tracker.debian.org>. (Thu, 26 May 2022 09:45:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Neil Williams <codehelp@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: pyjwt: CVE-2022-29217 - Key confusion through non-blocklisted public key formats
Date: Thu, 26 May 2022 10:40:01 +0100
Source: pyjwt
Version: 2.3.0-1
Severity: important
Tags: security upstream
X-Debbugs-Cc: codehelp@debian.org, Debian Security Team <team@security.debian.org>

Hi,

The following vulnerability was published for pyjwt.

CVE-2022-29217[0]:
| 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.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2022-29217
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29217

Please adjust the affected versions in the BTS as needed.




-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-2-amd64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu May 26 13:12:56 2022; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.