CVE-2020-26244: Oic Multiple Cryptographic Issues Vulnerability
HIGHCVE-2020-26244 is a HIGH (CVSS 6.8) multiple cryptographic issues vulnerability (CWE-325: Missing Cryptographic Step) affecting Oic libraries in the PyPI ecosystem. The issue involves multiple cryptographic issues in python oic. Remediation is available by upgrading affected packages to version 1.2.1.
CVE-2020-26244 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2020-26244
To remediate this vulnerability, upgrade all affected Oic dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install oic>=1.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show oic
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-26244, inspect your installed packages using pip:
pip show oic
Analyze the terminal output to locate any version of Oic in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.1), your application is affected.
Note: The pip show oic command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-325: Missing Cryptographic Step, where the product does not implement a required step in a cryptographic algorithm, resulting in weaker encryption than advertised by the algorithm. In Oic, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-26244 Affected Oic Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
oic
|
PyPI |
< 1.2.1
|
1.2.1
|
References
Frequently Asked Questions
What is CVE-2020-26244?
Which Oic versions are affected?
What version fixes CVE-2020-26244?
Is oic affected?
What is the CVSS score of CVE-2020-26244?
What CWE is associated with CVE-2020-26244?
How can I check PyPI dependencies for CVE-2020-26244?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4fjv-pmhg-3rfg",
"modified" : "2024-10-07T21:07:21Z",
"published" : "2020-12-04T16:47:12Z",
"aliases" : [ "CVE-2020-26244" ],
"summary" : "Multiple cryptographic issues in Python oic",
"details" : "### Impact\n* Client implementations using this library\n\n### Issues\n1) The IdToken signature algorithm was not checked automatically, but only if the expected algorithm was passed in as a kwarg.\n2) JWA `none` algorithm was allowed in all flows.\n3) `oic.consumer.Consumer.parse_authz` returns an unverified IdToken. The verification of the token was left to the discretion of the implementator.\n4) `iat` claim was not checked for sanity (i.e. it could be in the future)\n\n### Patches\n1) IdToken signature is now always checked.\n2) JWA `none` algorithm is now allowed only if using the `response_type` `code`\n3) IdToken verification is now done automatically.\n4) `iat` claim is now checked for sanity.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "oic"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/OpenIDC/pyoidc/security/advisories/GHSA-4fjv-pmhg-3rfg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26244"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenIDC/pyoidc/commit/62f8d753fa17c8b1f29f8be639cf0b33afb02498"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OpenIDC/pyoidc"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenIDC/pyoidc/releases/tag/1.2.1"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/oic/PYSEC-2020-69.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/oic"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-325", "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-12-02T20:06:06Z",
"nvd_published_at" : null
}
}