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 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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
duoCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 78%
VendorProductVersion
pyjwt_projectpyjwt
𝑥
≤ 1.5.0
debiandebian_linux
8.0
debiandebian_linux
9.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
pyjwt
bullseye
1.7.1-2
fixed
bookworm
2.6.0-1
fixed
sid
2.7.0-1
fixed
trixie
2.7.0-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
pyjwt
zesty
Fixed 1.4.2-1ubuntu0.1
released
xenial
Fixed 1.3.0-1ubuntu0.1
released
trusty
dne