Vulnerabilities in pkg:golang/github.com/openshift/apiserver-library-go

PACKAGE
Advisory Identifier: GHSA-5465-xc2j-6p84
Advisory Summary

CVE-2023-0229 is a MODERATE (CVSS 6.3) github.com/openshift/apiserver-library-go improper input validation vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Github.com/openshift/apiserver library go libraries in the Go ecosystem. The issue involves github.com/openshift/apiserver-library-go improper input validation vulnerability. Remediation is available by upgrading affected packages to version 0.0.0-20230120221150-cefee9e0162b.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/openshift/apiserver-library-go

2 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-5465-xc2j-6p84 CVE-2023-0229 MODERATE github.com/openshift/apiserver-library-go Improper Input Validation vulnerability
GHSA-92hx-3mh6-hc49 CVE-2023-1260 HIGH kube-apiserver authentication bypass vulnerability

CVE-2023-0229 at a Glance

CVE Identifier CVE-2023-0229
GHSA Identifier GHSA-5465-xc2j-6p84
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/openshift/apiserver library go
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

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

How to Fix CVE-2023-0229

To remediate this vulnerability, upgrade all affected Github.com/openshift/apiserver library go 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/apiserver-library-go fixed: 0.0.0-20230120221150-cefee9e0162b
Upgrade github.com/openshift/apiserver-library-go to 0.0.0-20230120221150-cefee9e0162b
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/apiserver-library-go

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-0229, inspect your project dependencies for Github.com/openshift/apiserver library go:

inspect dependencies for github.com/openshift/apiserver-library-go

Analyze the terminal output to locate any version of Github.com/openshift/apiserver library go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20230120221150-cefee9e0162b), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/openshift/apiserver library go, 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 flaw was found in github.com/openshift/apiserver-library-go, used in OpenShift 4.12 and 4.11, that contains an issue that can allow low-privileged users to set the seccomp profile for pods they control to "unconfined." By default, the seccomp profile used in the restricted-v2 Security Context Constraint (SCC) is "runtime/default," allowing users to disable seccomp for pods they can create and modify.

CVE-2023-0229 Affected Github.com/openshift/apiserver library go Versions

1 component(s)
Fixed Versions:
0.0.0-20230120221150-cefee9e0162b
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openshift/apiserver-library-go
Go
< 0.0.0-20230120221150-cefee9e0162b
0.0.0-20230120221150-cefee9e0162b

References

Frequently Asked Questions

What is CVE-2023-0229?
CVE-2023-0229 is a security vulnerability in Github.com/openshift/apiserver library go involving github.com/openshift/apiserver-library-go Improper Input Validation vulnerability under CWE-20: Improper Input Validation.
Which Github.com/openshift/apiserver library go versions are affected?
Affected versions include releases prior to 0.0.0-20230120221150-cefee9e0162b across affected packages: github.com/openshift/apiserver-library-go.
What version fixes CVE-2023-0229?
Upgrading to 0.0.0-20230120221150-cefee9e0162b (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openshift/apiserver-library-go affected?
Yes, github.com/openshift/apiserver-library-go is affected in releases prior to 0.0.0-20230120221150-cefee9e0162b. Upgrade your dependency to 0.0.0-20230120221150-cefee9e0162b or later.
What is the CVSS score of CVE-2023-0229?
CVE-2023-0229 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2023-0229?
CVE-2023-0229 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2023-0229?
Run the dependency tree command: 'inspect dependencies for github.com/openshift/apiserver-library-go'. 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-5465-xc2j-6p84",
  "modified" : "2024-05-20T21:44:13Z",
  "published" : "2023-01-26T21:30:20Z",
  "aliases" : [ "CVE-2023-0229" ],
  "summary" : "github.com/openshift/apiserver-library-go Improper Input Validation vulnerability",
  "details" : "A flaw was found in github.com/openshift/apiserver-library-go, used in OpenShift 4.12 and 4.11, that contains an issue that can allow low-privileged users to set the seccomp profile for pods they control to \"unconfined.\" By default, the seccomp profile used in the restricted-v2 Security Context Constraint (SCC) is \"runtime/default,\" allowing users to disable seccomp for pods they can create and modify.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openshift/apiserver-library-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20230120221150-cefee9e0162b"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0229"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/apiserver-library-go/pull/97"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/apiserver-library-go/commit/30f75d79e424ca462c6de53ee8b93f91183763e6"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2160349"
  }, {
    "type" : "PACKAGE",
    "url" : "github.com/openshift/apiserver-library-go"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T21:36:10Z",
    "nvd_published_at" : "2023-01-26T21:18:00Z"
  }
}