UBUNTU-CVE-2017-11424

Source
https://ubuntu.com/security/CVE-2017-11424
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-11424.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2017-11424
Related
Published
2017-08-24T00:00:00Z
Modified
2025-01-13T10:21:24Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:16.04:LTS / pyjwt

Package

Name
pyjwt
Purl
pkg:deb/ubuntu/pyjwt@1.3.0-1ubuntu0.1?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.0-1ubuntu0.1

Affected versions

1.*

1.0.0-0ubuntu1
1.3.0-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.3.0-1ubuntu0.1",
            "binary_name": "python-jwt"
        },
        {
            "binary_version": "1.3.0-1ubuntu0.1",
            "binary_name": "python3-jwt"
        }
    ]
}