CVE-2024-33663
Python vulnerability analysis and mitigation

Overview

CVE-2024-33663 affects python-jose through version 3.3.0, involving an algorithm confusion vulnerability with OpenSSH ECDSA keys and other key formats. The vulnerability was disclosed on April 25, 2024, and is similar to CVE-2022-29217. This security issue impacts the python-jose library, which is commonly used for JSON Web Token (JWT) operations (NVD).

Technical details

The vulnerability stems from two main issues in the python-jose library: the algorithms field in jwt.decode is not mandatory, allowing developers to potentially misuse the functionality, and there are inadequate protections in the cryptography backend that allow for HMAC verification with an asymmetric public key. The issue specifically relates to the implementation in jose/backends/cryptographybackend.py, where the invalidstrings list intended to prevent HMAC tokens verification with asymmetric public keys is insufficient, particularly for OpenSSH ECDSA public keys (Github Issue). The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N (NVD).

Impact

The vulnerability allows attackers to bypass signature verification by using HMAC verification with asymmetric public keys, particularly OpenSSH ECDSA keys. This could lead to unauthorized token creation and validation, potentially compromising the security of applications relying on python-jose for JWT operations (Github Issue).

Mitigation and workarounds

The recommended solution follows a similar approach to the patch for CVE-2022-29217, implementing a more comprehensive check of whether the verifying key is asymmetric. Additionally, it is suggested to make non-usage of the algorithms keyword throw an exception or warning to alert developers of potential security risks (Github Issue).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management