CVE-2017-11424
publishedpython-jwt: Incorrect handling of PEM-encoded public keys
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | duo |
| Debian | jessie | pyjwt | Advisory build | 0.2.1-1+deb8u2 | DSA-3979-1 |
| Ubuntu | xenial | pyjwt | Advisory build | 1.3.0-1ubuntu0.1 | USN-3407-1 |
| Debian | stretch | pyjwt | Advisory build | 1.4.2-1+deb9u1 | DSA-3979-1 |
| Ubuntu | xenial | python-jwt | Advisory build | 1.3.0-1ubuntu0.1 | USN-3407-1 |
| Ubuntu | xenial | python3-jwt | Advisory build | 1.3.0-1ubuntu0.1 | USN-3407-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | duo · cna |
Weaknesses
1- n/a
References
2- DSA-3979 http://www.debian.org/security/2017/dsa-3979
- https://github.com/jpadilla/pyjwt/pull/277
Provider assertions
2duo · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6e48ff4bab48b9571818ce93422c4e53f2192a6947f483d9f945354c46909323
- Ingested
- 23 Sep 2026, 07:41:55 UTC
- Source record
- Official CVE record