CVE-2020-26244
JSON

6.8medium

Cryptographic issues in Python oic

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.83% (higher than 55% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4fjv-pmhg-3rfgPYSEC-2020-69

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

Product or packageVersionsReported by
OpenIDC pyoidc< 1.2.1CVE List
oic (PyPI)before 1.2.1, before 62f8d753fa17c8b1f29f8be639cf0b33afb02498GitHub Advisory Database, PyPA Advisory Database
python_openid_connect_project python_openid_connectbefore 1.2.1NVD

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub6.8high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD4.9medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact
  • Client implementations using this library
Issues
  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)
Patches
  1. IdToken signature is now always checked.
  2. JWA none algorithm is now allowed only if using the response_type code
  3. IdToken verification is now done automatically.
  4. iat claim is now checked for sanity.
NVD (es)

Python oic es una implementación de Python OpenID Connect.&#xa0;En Python oic versiones anteriores a 1.2.1, se presentan varios problemas criptográficos relacionados que afectan las implementaciones de los clientes que usan la biblioteca.&#xa0;Los problemas son: 1) El algoritmo de firma IdToken no se comprobó automáticamente, sino solo si el algoritmo esperado era pasado como un kwarg.&#xa0;2) Se permitió el algoritmo JWA "none" en todos los flujos.&#xa0;3) oic.consumer.Consumer.parse_authz devuelve un IdToken no verificado.&#xa0;La comprobación del token se dejó a discreción del implementador.&#xa0;4) el reclamo de iat no se comprobó por sanidad (es decir, podría ser en el futuro).&#xa0;Estos problemas están parcheados en la versión 1.2.1

References

Sources

SourceRecordLicence
CVE ListCVE-2020-26244 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-4fjv-pmhg-3rfg changed 2026-07-08CC-BY-4.0
NVDCVE-2020-26244 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2020-69 changed 2023-11-08CC-BY-4.0