CVE-2017-11424
Description
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.
Risk Information
Base Score
7.5
MODERATE
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS Score
Exploitation Probability
1.296
Associated Vulnerability
| Vulnerability | OS Platform |
|---|---|
| Vulnerabilities CVE-2017-11424 are fixed in Python-pyjwt 1.5.1 | Windows |
| Python implementation of JSON Web Token (USN-3407-1) python-jwt_1.3.0-1ubuntu0.1_all.deb | Linux |
| Python implementation of JSON Web Token (USN-3407-1) python-jwt_1.4.2-1ubuntu0.1_all.deb | Linux |
| Python implementation of JSON Web Token (USN-3407-1) python3-jwt_1.3.0-1ubuntu0.1_all.deb | Linux |
| Python implementation of JSON Web Token (USN-3407-1) python3-jwt_1.4.2-1ubuntu0.1_all.deb | Linux |
| Vulnerabilities CVE-2017-11424 are fixed in Python-pyjwt for linux 1.5.1 | Linux |
Patch Details
No records foundReferences
https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234