Vulnerabilities in pkg:golang/github.com/openshift/assisted-installer

PACKAGE
Advisory Identifier: GHSA-g8xm-p2h4-v6jp
Advisory Summary

CVE-2021-3684 is a MODERATE (CVSS 5.5) openshift assisted installer leaks image vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/openshift/assisted installer libraries in the Go ecosystem. The issue involves openshift assisted installer leaks image pull secrets as plaintext in installation logs. Remediation is available by upgrading affected packages to version 1.0.25.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/openshift/assisted-installer

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-g8xm-p2h4-v6jp CVE-2021-3684 MODERATE OpenShift Assisted Installer leaks image pull secrets as plaintext in installation logs

CVE-2021-3684 at a Glance

CVE Identifier CVE-2021-3684
GHSA Identifier GHSA-g8xm-p2h4-v6jp
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/openshift/assisted installer
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-3684

To remediate this vulnerability, upgrade all affected Github.com/openshift/assisted installer 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/assisted-installer fixed: 1.0.25.1
Upgrade github.com/openshift/assisted-installer to 1.0.25.1
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/assisted-installer

How to Check if You Are Affected

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

inspect dependencies for github.com/openshift/assisted-installer

Analyze the terminal output to locate any version of Github.com/openshift/assisted installer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.25.1), 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/openshift/assisted installer, 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 Assisted Installer. During generation of the Discovery ISO, image pull secrets were leaked as plaintext in the installation logs. An authenticated user could exploit this by re-using the image pull secret to pull container images from the registry as the associated user.

CVE-2021-3684 Affected Github.com/openshift/assisted installer Versions

1 component(s)
Fixed Versions:
1.0.25.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openshift/assisted-installer
Go
< 1.0.25.1
1.0.25.1

References

Frequently Asked Questions

What is CVE-2021-3684?
CVE-2021-3684 is a security vulnerability in Github.com/openshift/assisted installer involving OpenShift Assisted Installer leaks image pull secrets as plaintext in installation logs under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/openshift/assisted installer versions are affected?
Affected versions include releases prior to 1.0.25.1 across affected packages: github.com/openshift/assisted-installer.
What version fixes CVE-2021-3684?
Upgrading to 1.0.25.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openshift/assisted-installer affected?
Yes, github.com/openshift/assisted-installer is affected in releases prior to 1.0.25.1. Upgrade your dependency to 1.0.25.1 or later.
What is the CVSS score of CVE-2021-3684?
CVE-2021-3684 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2021-3684?
CVE-2021-3684 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2021-3684?
Run the dependency tree command: 'inspect dependencies for github.com/openshift/assisted-installer'. 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-g8xm-p2h4-v6jp",
  "modified" : "2023-04-04T15:24:49Z",
  "published" : "2023-03-24T21:30:48Z",
  "aliases" : [ "CVE-2021-3684" ],
  "summary" : "OpenShift Assisted Installer leaks image pull secrets as plaintext in installation logs",
  "details" : "A vulnerability was found in OpenShift Assisted Installer. During generation of the Discovery ISO, image pull secrets were leaked as plaintext in the installation logs. An authenticated user could exploit this by re-using the image pull secret to pull container images from the registry as the associated user.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openshift/assisted-installer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.25.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3684"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/assisted-installer/commit/2403dad3795406f2c5d923af0894e07bc8b0bdc4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/assisted-installer/commit/f3800cfa3d64ce6dcd6f7b73f0578bb99bfdaf7a"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1985962"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openshift/assisted-installer"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-24T21:59:18Z",
    "nvd_published_at" : "2023-03-24T20:15:00Z"
  }
}