PYSEC-2026-4298

python-jose algorithm confusion guard bypassed by DER-encoded public keys

En bref

Publiée
Mise à jour
CVE
CVE-2024-33663, CVE-2026-85394
Alias
GHSA-3qf3-8w2g-rqmx, GHSA-6c5p-j8vq-pqhj, PYSEC-2024-232
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Description

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.

Paquets affectés

PaquetVersions
PyPI · python-joseintroduced 0, last affected 3.5.0

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database