{"schemaVersion":3,"id":"CVE-2017-11424","aliases":["GHSA-r9jw-mwhq-wp62","PYSEC-2017-24","UBUNTU-CVE-2017-11424","USN-3407-1","DEBIAN-CVE-2017-11424","DSA-3979-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2017-08-24T16:00:00.000Z","modified":"2024-08-05T18:12:39.550Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.01804,"percentile":0.78227,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01804},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01731,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01804,"percentile":0.78227}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01731,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01804,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01804,"percentile":0.78227}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"debian","product":"pyjwt","name":"pyjwt","label":"pyjwt","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pyjwt","purlType":"deb","versions":[{"text":"< 1.4.2-1.1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.2.1-1+deb8u2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.4.2-1+deb9u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.2-1.1 | < 0.2.1-1+deb8u2 | < 1.4.2-1+deb9u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pyjwt","name":"pyjwt","label":"pyjwt","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pyjwt","purlType":"deb","versions":[{"text":"< 1.3.0-1ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.0-1ubuntu0.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"pyjwt_project","product":"pyjwt","name":"pyjwt","label":"pyjwt","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.5.0","eol":null,"hubHref":"/vendor/pyjwt_project/pyjwt"},{"vendor":"PyPI","product":"pyjwt","name":"pyjwt","label":"pyjwt","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pyjwt","purlType":"pypi","versions":[{"text":"< 1.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"http://www.debian.org/security/2017/dsa-3979","label":"www.debian.org/security/2017/dsa-3979","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory","WEB","Advisory"]},{"url":"https://github.com/jpadilla/pyjwt/pull/277","label":"github.com/jpadilla/pyjwt/pull/277","hostname":"github.com","tags":["X Refsource CONFIRM","Issue Tracking","Patch","Third Party Advisory","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-11424","label":"nvd.nist.gov/vuln/detail/CVE-2017-11424","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jpadilla/pyjwt","label":"github.com/jpadilla/pyjwt","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2017-24.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2017-24.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-r9jw-mwhq-wp62","label":"github.com/advisories/GHSA-r9jw-mwhq-wp62","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-11424","label":"ubuntu.com/security/CVE-2017-11424","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3407-1","label":"ubuntu.com/security/notices/USN-3407-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-11424","label":"www.cve.org/CVERecord?id=CVE-2017-11424","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-11424","label":"security-tracker.debian.org/tracker/CVE-2017-11424","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":["CVE-2017-12880"],"related":[]},"timeline":[{"kind":"published","date":"2017-08-24T16:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T18:12:39.550Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T20:08:17.841Z","stale":false,"partial":false}}