CVE-2024-37568: High severity Authlib Authlib vulnerability

Published Jun 9, 2024
·
Updated

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.)

Affected Software

10 affected componentsFixes available
pip/authlib>=0<1.3.1
1.3.1
Authlib Authlib<1.3.1
debian/python-authlib<1.2.0-1+deb12u1
1.2.0-1+deb12u1
debian/python-authlib<1.3.1-1
1.3.1-1
debian/python-authlib<1.3.1-1
1.3.1-1
debian/python-authlib
1.2.0-1+deb12u11.2.0-1+deb12u21.6.0-1+deb13u11.9.1-1
ubuntu/python-authlib<0.15.5-1ubuntu0.1~esm1
0.15.5-1ubuntu0.1~esm1
ubuntu/python-authlib<1.3.0-1ubuntu0.1~esm1
1.3.0-1ubuntu0.1~esm1
ubuntu/python-authlib*
ubuntu/python-authlib*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/authlib to a version that resolves this vulnerability.

    Fixed in 1.3.1
  2. Upgrade

    Upgrade debian/python-authlib to a version that resolves this vulnerability.

    Fixed in 1.2.0-1+deb12u1
  3. Upgrade

    Upgrade debian/python-authlib to a version that resolves this vulnerability.

    Fixed in 1.3.1-1
  4. Upgrade

    Upgrade debian/python-authlib to a version that resolves this vulnerability.

    Fixed in 1.2.0-1+deb12u1Fixed in 1.2.0-1+deb12u2Fixed in 1.6.0-1+deb13u1Fixed in 1.9.1-1
  5. Upgrade

    Upgrade ubuntu/python-authlib to a version that resolves this vulnerability.

    Fixed in 0.15.5-1ubuntu0.1~esm1
  6. Upgrade

    Upgrade ubuntu/python-authlib to a version that resolves this vulnerability.

    Fixed in 1.3.0-1ubuntu0.1~esm1

Event History

Jun 9, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:30 PM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-37568?

CVE-2024-37568 is classified as a medium severity vulnerability due to potential HMAC verification risks with asymmetric public keys.

2

How do I fix CVE-2024-37568?

To fix CVE-2024-37568, upgrade Authlib to version 1.3.1 or later.

3

What type of attack does CVE-2024-37568 expose software to?

CVE-2024-37568 exposes software to risks of algorithm confusion attacks, allowing unauthorized HMAC verification.

4

Which versions of Authlib are affected by CVE-2024-37568?

Authlib versions prior to 1.3.1 are affected by CVE-2024-37568.

5

Is there a workaround for CVE-2024-37568 if I cannot upgrade?

A workaround for CVE-2024-37568 involves explicitly specifying the algorithm in the jwt.decode call.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203