Advisory

UBUNTU-CVE-2022-29217

Also known as: CVE-2022-29217

Summary

The record has no summary.

Details

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

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2022-05-24 15:15 UTC
Modified
2026-02-04 03:26 UTC

Affected packages and fixes

pyjwt

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 1.5.3+ds1-1ubuntu0.1 (ecosystem)

Fixed versions

1.5.3+ds1-1ubuntu0.1

Fix

  • Fixed version 1.5.3+ds1-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

pyjwt

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1.7.1-2ubuntu2.1 (ecosystem)

Fixed versions

1.7.1-2ubuntu2.1

Fix

  • Fixed version 1.7.1-2ubuntu2.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

pyjwt

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.3.0-1ubuntu0.1 (ecosystem)

Fixed versions

2.3.0-1ubuntu0.1

Fix

  • Fixed version 2.3.0-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences