p PatchFirst

CVE-2017-11424

CVE-2017-11424

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.5 · High · EPSS 1.8% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • pyjwt Debian:12

    Affected ranges
    • ECOSYSTEM: < 1.4.2-1.1

    Update to 1.4.2-1.1

  • pyjwt Debian:13

    Affected ranges
    • ECOSYSTEM: < 1.4.2-1.1

    Update to 1.4.2-1.1

  • pyjwt Debian:14

    Affected ranges
    • ECOSYSTEM: < 1.4.2-1.1

    Update to 1.4.2-1.1

  • pyjwt PyPI

    Versions
    • 0.1.1
    • 0.1.2
    • 0.1.3
    • 0.1.4
    • 0.1.5
    • 0.1.6
    • 0.1.7
    • 0.1.8
    • 0.1.9
    • 0.2.0
    • 0.2.1
    • 0.2.3
    • 0.3.0
    • 0.3.1
    • 0.3.2
    • 0.4.0
    • 0.4.1
    • 0.4.2
    • 0.4.3
    • 1.0.0
    • 1.0.1
    • 1.1.0
    • 1.3.0
    • 1.4.0
    • 1.4.1
    • 1.4.2
    • 1.5.0
    Affected ranges
    • ECOSYSTEM: < 1.5.1

    Update to 1.5.1

  • pyjwt Ubuntu:16.04:LTS

    Versions
    • 1.0.0-0ubuntu1
    • 1.3.0-1
    Affected ranges
    • ECOSYSTEM: < 1.3.0-1ubuntu0.1

    Update to 1.3.0-1ubuntu0.1

Original sources

Check your server →