Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1482529 - (CVE-2017-11424) CVE-2017-11424 python-jwt: Incorrect handling of PEM-encoded public keys
CVE-2017-11424 python-jwt: Incorrect handling of PEM-encoded public keys
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20170622,repor...
: Security
Depends On: 1482530 1482531 1483435 1526430
Blocks: 1482533
  Show dependency treegraph
 
Reported: 2017-08-17 09:27 EDT by Adam Mariš
Modified: 2017-12-19 08:31 EST (History)
7 users (show)

See Also:
Fixed In Version: python-jwt 1.5.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-19 08:31:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2017-08-17 09:27:42 EDT
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.

Upstream bug:

https://github.com/jpadilla/pyjwt/pull/277
Comment 1 Adam Mariš 2017-08-17 09:27:59 EDT
Created python-jwt tracking bugs for this issue:

Affects: epel-7 [bug 1482530]
Affects: fedora-all [bug 1482531]
Comment 3 Adam Mariš 2017-08-25 04:17:31 EDT
CVE-2017-12880 was rejected in favour of CVE-2017-11424.
Comment 4 Siddharth Sharma 2017-10-08 23:49:38 EDT
Analysis:

Python-jwt is shipped as dependency for heketi in Red Hat Gluster Storage 3. Heketi only uses token signatures (used algorithm HMAC HS256). Python-jwt is affected by this CVE but it does not affect Red Hat Gluster Storage 3 in the way it is being used.

Note You need to log in before you can comment on or make changes to this bug.