# CVE-2017-11424

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2017-08-24 · Modified: 2024-08-05
- Aliases: GHSA-r9jw-mwhq-wp62, PYSEC-2017-24, UBUNTU-CVE-2017-11424, USN-3407-1, DEBIAN-CVE-2017-11424, DSA-3979-1
- Record: https://cvemate.com/vulnerability/CVE-2017-11424 · JSON: https://cvemate.com/vulnerability/CVE-2017-11424/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 1.789%, percentile 79.115%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian pyjwt (Debian): \< 1.4.2-1.1 \| \< 0.2.1-1+deb8u2 \| \< 1.4.2-1+deb9u1
- ubuntu pyjwt (Ubuntu): \< 1.3.0-1ubuntu0.1
- debian debian\_linux: 8.0 \| 9.0
- pyjwt\_project pyjwt: ≤ 1.5.0
- PyPI pyjwt (PyPI): \< 1.5.1

## References

- <http://www.debian.org/security/2017/dsa-3979>
- <https://github.com/jpadilla/pyjwt/pull/277>
- <https://nvd.nist.gov/vuln/detail/CVE-2017-11424>
- <https://github.com/jpadilla/pyjwt>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2017-24.yaml>
- <https://github.com/advisories/GHSA-r9jw-mwhq-wp62>
- <https://ubuntu.com/security/CVE-2017-11424>
- <https://ubuntu.com/security/notices/USN-3407-1>
- <https://www.cve.org/CVERecord?id=CVE-2017-11424>
- <https://security-tracker.debian.org/tracker/CVE-2017-11424>

---

Data as of 2026-12-05T10:27:29.180Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
