Vulnerabilities in pkg:golang/github.com/openshift/osin

PACKAGE
Advisory Identifier: GHSA-m7qp-cj9p-gj85
Advisory Summary

CVE-2021-4294 is a MODERATE (CVSS 5.9) openshift osin vulnerable to observable vulnerability (CWE-203: Observable Discrepancy) affecting Github.com/openshift/osin libraries in the Go ecosystem. The issue involves openshift osin vulnerable to observable timing discrepancy. Remediation is available by upgrading affected packages to version 1.0.2-0.20210113124101-8612686d6dda.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/openshift/osin

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/openshift/osin. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m7qp-cj9p-gj85 CVE-2021-4294 MODERATE OpenShift OSIN vulnerable to Observable Timing Discrepancy

CVE-2021-4294 at a Glance

CVE Identifier CVE-2021-4294
GHSA Identifier GHSA-m7qp-cj9p-gj85
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-203: Observable Discrepancy
Affected Product Github.com/openshift/osin
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2021-4294

To remediate this vulnerability, upgrade all affected Github.com/openshift/osin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/openshift/osin fixed: 1.0.2-0.20210113124101-8612686d6dda
Upgrade github.com/openshift/osin to 1.0.2-0.20210113124101-8612686d6dda
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/openshift/osin

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-4294, inspect your project dependencies for Github.com/openshift/osin:

inspect dependencies for github.com/openshift/osin

Analyze the terminal output to locate any version of Github.com/openshift/osin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.2-0.20210113124101-8612686d6dda), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Github.com/openshift/osin, 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

A vulnerability was found in OpenShift OSIN. It has been classified as problematic. This affects the function `ClientSecretMatches/CheckClientSecret`. The manipulation of the argument secret leads to observable timing discrepancy. The name of the patch is 8612686d6dda34ae9ef6b5a974e4b7accb4fea29. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-216987.

CVE-2021-4294 Affected Github.com/openshift/osin Versions

1 component(s)
Fixed Versions:
1.0.2-0.20210113124101-8612686d6dda
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openshift/osin
Go
< 1.0.2-0.20210113124101-8612686d6dda
1.0.2-0.20210113124101-8612686d6dda

References

Frequently Asked Questions

What is CVE-2021-4294?
CVE-2021-4294 is a security vulnerability in Github.com/openshift/osin involving OpenShift OSIN vulnerable to Observable Timing Discrepancy under CWE-203: Observable Discrepancy.
Which Github.com/openshift/osin versions are affected?
Affected versions include releases prior to 1.0.2-0.20210113124101-8612686d6dda across affected packages: github.com/openshift/osin.
What version fixes CVE-2021-4294?
Upgrading to 1.0.2-0.20210113124101-8612686d6dda (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openshift/osin affected?
Yes, github.com/openshift/osin is affected in releases prior to 1.0.2-0.20210113124101-8612686d6dda. Upgrade your dependency to 1.0.2-0.20210113124101-8612686d6dda or later.
What is the CVSS score of CVE-2021-4294?
CVE-2021-4294 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2021-4294?
CVE-2021-4294 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check Go dependencies for CVE-2021-4294?
Run the dependency tree command: 'inspect dependencies for github.com/openshift/osin'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m7qp-cj9p-gj85",
  "modified" : "2024-03-01T14:23:07Z",
  "published" : "2022-12-28T18:30:20Z",
  "aliases" : [ "CVE-2021-4294" ],
  "summary" : "OpenShift OSIN vulnerable to Observable Timing Discrepancy",
  "details" : "A vulnerability was found in OpenShift OSIN. It has been classified as problematic. This affects the function `ClientSecretMatches/CheckClientSecret`. The manipulation of the argument secret leads to observable timing discrepancy. The name of the patch is 8612686d6dda34ae9ef6b5a974e4b7accb4fea29. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-216987.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openshift/osin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.2-0.20210113124101-8612686d6dda"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-4294"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/osin/pull/200"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/osin/commit/8612686d6dda34ae9ef6b5a974e4b7accb4fea29"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openshift/osin"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-1201"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.216987"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.216987"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-203", "CWE-208" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-09T21:50:04Z",
    "nvd_published_at" : "2022-12-28T17:15:00Z"
  }
}