cbcvebase.
CVE-2017-11424
published 2017-08-24

CVE-2017-11424: In PyJWT 1.5.0 and below the `invalid_strings` check in `HMACAlgorithm.prepare_key` does not account for all PEM encoded public keys. Specifically, the PKCS1…

PriorityP340high7.5CVSS 3.0
AVNACLPRNUINSUCNIHAN
EPSS
1.80%
76.4th percentile
In PyJWT 1.5.0 and below the `invalid_strings` check in `HMACAlgorithm.prepare_key` does not account for all PEM encoded public keys. Specifically, the PKCS1 PEM encoded format would be allowed because it is prefaced with the string `-----BEGIN RSA PUBLIC KEY-----` which is not accounted for. This enables symmetric/asymmetric key confusion attacks against users using the PKCS1 PEM encoded public keys, which would allow an attacker to craft JWTs from scratch.

Affected

10 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debianpyjwt< pyjwt 1.4.2-1.1 (bookworm)pyjwt 1.4.2-1.1 (bookworm)
pyjwt_projectpyjwt<= 1.5.0
pyjwt_projectpyjwt>= 0 < 1.4.2-1.11.4.2-1.1
pyjwt_projectpyjwt>= 0 < 1.4.2-1.11.4.2-1.1
pyjwt_projectpyjwt>= 0 < 1.4.2-1.11.4.2-1.1
pyjwt_projectpyjwt>= 0 < 1.4.2-1.11.4.2-1.1
pyjwt_projectpyjwt>= 0 < 1.5.11.5.1
pyjwt_projectpyjwt>= 0 < 2.13.02.13.0

CVSS provenance

nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:N
ghsa8.8HIGH
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.