{"id":"CVE-2024-33663","aliases":["CVE-2024-33663","GHSA-3qf3-8w2g-rqmx","GHSA-6c5p-j8vq-pqhj","PYSEC-2024-232","PYSEC-2026-4298"],"related":["CVE-2026-85394"],"kind":"vulnerability","state":"published","title":"python-jose algorithm confusion guard bypassed by DER-encoded public keys","summary":"python-jose through 3.3.0 has algorithm confusion with OpenSSH ECDSA keys and other key formats. This is similar to CVE-2022-29217.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"python-jose through 3.3.0 has algorithm confusion with OpenSSH ECDSA keys and other key formats. This is similar to CVE-2022-29217.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"python-jose hasta 3.3.0 tiene confusión de algoritmos con claves OpenSSH ECDSA y otros formatos de claves. Esto es similar a CVE-2022-29217.","source":"nvd"}],"published":"2024-04-25T00:00:00.000Z","modified":"2026-10-15T14:56:01.261Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-327","CWE-347"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"3.3.0","status":"affected"}],"vendor":"python-jose_project","product":"python-jose","cpe":"cpe:2.3:a:python-jose_project:python-jose:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.5.0"}],"ecosystem":"PyPI","package":"python-jose","purl":"pkg:pypi/python-jose","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.0"}],"ecosystem":"PyPI","package":"python-jose","purl":"pkg:pypi/python-jose","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.3.0"}],"vendor":"python-jose_project","product":"python-jose","cpe":"cpe:2.3:a:python-jose_project:python-jose:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.0"}],"ecosystem":"PyPI","package":"python-jose","purl":"pkg:pypi/python-jose","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.5.0"}],"ecosystem":"PyPI","package":"python-jose","purl":"pkg:pypi/python-jose","source":"pysec"}],"references":[{"url":"https://github.com/mpdavis/python-jose/issues/346","tags":["exploit","issue-tracking","report","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vicarius.io/vsociety/posts/algorithm-confusion-in-python-jose-cve-2024-33663","tags":["exploit","mitigation","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85394","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mpdavis/python-jose/issues/414","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-6c5p-j8vq-pqhj","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mpdavis/python-jose","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mpdavis/python-jose/blob/018b310ddb8b50dcfd09a0c152117835a21dd656/jose/backends/native.py","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mpdavis/python-jose/blob/018b310ddb8b50dcfd09a0c152117835a21dd656/jose/utils.py","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://www.vulncheck.com/advisories/python-jose-through-3.5.0-algorithm-confusion-via-der-encoded-public-key-as-hmac-secret","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-33663","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/python-jose/PYSEC-2024-232.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/python-jose","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-3qf3-8w2g-rqmx","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-07-17T13:37:11.286Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-33663","url":"https://www.cve.org/CVERecord?id=CVE-2024-33663","licence":"CVE Terms of Use","modified":"2024-09-03T19:34:19.749Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3qf3-8w2g-rqmx","url":"https://github.com/advisories/GHSA-3qf3-8w2g-rqmx","licence":"CC-BY-4.0","modified":"2026-10-15T14:56:01.261Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6c5p-j8vq-pqhj","url":"https://github.com/advisories/GHSA-6c5p-j8vq-pqhj","licence":"CC-BY-4.0","modified":"2026-10-15T14:56:01.261Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-33663","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-33663","licence":"Public domain","modified":"2026-06-17T07:32:11.280Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-232","url":"https://osv.dev/vulnerability/PYSEC-2024-232","licence":"CC-BY-4.0","modified":"2026-10-15T14:56:01.261Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4298","url":"https://osv.dev/vulnerability/PYSEC-2026-4298","licence":"CC-BY-4.0","modified":"2026-10-15T14:56:01.261Z"}],"updatedAt":"2026-11-25T22:58:39.612Z","epss":{"score":0.00307,"percentile":0.25383,"date":"2026-12-01T12:00:22.000Z"}}