Mpdavis python-jose
python-jose through 3.5.0 Algorithm Confusion via DER-encoded Public Key as HMAC Secret
python-jose through 3.5.0 fails to properly validate asymmetric keys in HMAC initialization, accepting DER-encoded public keys that lack PEM armor or SSH prefixes. Attackers holding the service's public key can forge HS256 tokens that pass verification when algorithms are not explicitly restricted. This is an incomplete fix for CVE-2024-33663.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.3critical · scored by CNA · CWE-347
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
mpdavis python-jose
- <= 3.5.0
Mitigation
The record names no fix. Check the vendor advisory below.
References
- Vendor advisory github.com/advisories/GHSA-6c5p-j8vq-pqhj
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.