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 package | Versions | Reported by |
|---|---|---|
| OpenIDC pyoidc | < 1.2.1 | CVE List |
| oic (PyPI) | before 1.2.1, before 62f8d753fa17c8b1f29f8be639cf0b33afb02498 | GitHub Advisory Database, PyPA Advisory Database |
| python_openid_connect_project python_openid_connect | before 1.2.1 | NVD |
All scores
| GitHub_M | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 6.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 4.9medium CVSS:2.0 | AV: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
- The IdToken signature algorithm was not checked automatically, but only if the expected algorithm was passed in as a kwarg.
- JWA
nonealgorithm was allowed in all flows. oic.consumer.Consumer.parse_authzreturns an unverified IdToken. The verification of the token was left to the discretion of the implementator.iatclaim was not checked for sanity (i.e. it could be in the future)
Patches
- IdToken signature is now always checked.
- JWA
nonealgorithm is now allowed only if using theresponse_typecode - IdToken verification is now done automatically.
iatclaim is now checked for sanity.
NVD (es)
Python oic es una implementación de Python OpenID Connect. 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. 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. 2) Se permitió el algoritmo JWA "none" en todos los flujos. 3) oic.consumer.Consumer.parse_authz devuelve un IdToken no verificado. La comprobación del token se dejó a discreción del implementador. 4) el reclamo de iat no se comprobó por sanidad (es decir, podría ser en el futuro). Estos problemas están parcheados en la versión 1.2.1
References
| https://github.com/OpenIDC/pyoidc/security/advisories/GHSA-4fjv-pmhg-3rfg | advisory, third-party-advisory, web | |
| https://pypi.org/project/oic/ | package, product, vendor-advisory | |
| https://github.com/OpenIDC/pyoidc/commit/62f8d753fa17c8b1f29f8be639cf0b33afb02498 | fix, patch, third-party-advisory, web | |
| https://github.com/OpenIDC/pyoidc/releases/tag/1.2.1 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-26244 | advisory | |
| https://github.com/OpenIDC/pyoidc | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/oic/PYSEC-2020-69.yaml | web | |
| https://pypi.org/project/oic | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26244 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4fjv-pmhg-3rfg changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-26244 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-69 changed 2023-11-08 | CC-BY-4.0 |