Advisory

GHSA-5357-c2jx-v7qh

Also known as: CVE-2024-37568, PYSEC-2024-52

Summary

Authlib has algorithm confusion with asymmetric public keys

Details

lepture Authlib before 1.3.1 has algorithm confusion with asymmetric public keys. Unless an algorithm is specified in a jwt.decode call, HMAC verification is allowed with any asymmetric public key. (This is similar to CVE-2022-29217 and CVE-2024-33663.)

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-06-09 21:30 UTC
Modified
2025-11-03 19:51 UTC

Affected packages and fixes

authlib

PyPI · All systems

Affected

  • introduced 0, fixed 1.3.1 (ecosystem)

Fixed versions

1.3.1

Fix

  • Fixed version 1.3.1
    pip install --upgrade authlib==1.3.1

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences