Vulnerability · Published Dec 2, 2020 · Assigned by GitHub_M
CVE-2020-26244Cryptographic issues in Python oic
Medium 6.8
In plain English
A medium-severity security flaw in pyoidc from OpenIDC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Python oic is a Python OpenID Connect implementation. In Python oic before version 1.2.1, there are several related cryptographic issues affecting client implementations that use the library. The issues are: 1) The IdToken signature algorithm was not checked automatically, but only if the expected algorithm was passed in as a kwarg. 2) JWA `none` algorithm was allowed in all flows. 3) oic.consumer.Consumer.parse_authz returns an unverified IdToken. The verification of the token was left to the discretion of the implementator. 4) iat claim was not checked for sanity (i.e. it could be in the future). These issues are patched in version 1.2.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | oic | 1.2.1 | GHSA-4fjv-pmhg-3rfg |
| PyPI | oic | 1.2.1 | PYSEC-2020-69 |
Affected products (as reported)
Weakness: CWE-325, CWE-347 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/OpenIDC/pyoidc/security/advisories/GHSA-4fjv-pmhg-3rfg x_refsource_CONFIRM
- https://pypi.org/project/oic/ x_refsource_MISC
- https://github.com/OpenIDC/pyoidc/commit/62f8d753fa17c8b1f29f8be639cf0b33afb02498 x_refsource_MISC
- https://github.com/OpenIDC/pyoidc/releases/tag/1.2.1 x_refsource_MISC