CVE-2023-1260: Github.com/openshift/apiserver library go Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-92hx-3mh6-hc49
CVSS 8.0
CWE-288
Published
Advisory Summary

CVE-2023-1260 is a HIGH (CVSS 8.0) authentication bypass vulnerability (CWE-288: Authentication Bypass Using an Alternate Path or Channel) affecting Github.com/openshift/apiserver library go libraries in the Go ecosystem. The issue involves kube-apiserver authentication bypass vulnerability. Remediation is available by upgrading affected packages to version 0.0.0-20230621.

CVE-2023-1260 at a Glance

CVE Identifier CVE-2023-1260
GHSA Identifier GHSA-92hx-3mh6-hc49
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-288: Authentication Bypass Using an Alternate Path or Channel
Affected Product Github.com/openshift/apiserver library go
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.0

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

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

How to Fix CVE-2023-1260

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-20230621
Upgrade github.com/openshift/apiserver-library-go to 0.0.0-20230621
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-1260, 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-20230621), 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-288: Authentication Bypass Using an Alternate Path or Channel, where the product requires authentication, but the product has an alternate path or channel that does not require authentication. 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

An authentication bypass vulnerability was discovered in kube-apiserver. This issue could allow a remote, authenticated attacker who has been given permissions "update, patch" the "pods/ephemeralcontainers" subresource beyond what the default is. They would then need to create a new pod or patch one that they already have access to. This might allow evasion of SCC admission restrictions, thereby gaining control of a privileged pod.

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

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

References

Frequently Asked Questions

What is CVE-2023-1260?
CVE-2023-1260 is a security vulnerability in Github.com/openshift/apiserver library go involving kube-apiserver authentication bypass vulnerability under CWE-288: Authentication Bypass Using an Alternate Path or Channel.
Which Github.com/openshift/apiserver library go versions are affected?
Affected versions include releases prior to 0.0.0-20230621 across affected packages: github.com/openshift/apiserver-library-go.
What version fixes CVE-2023-1260?
Upgrading to 0.0.0-20230621 (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-20230621. Upgrade your dependency to 0.0.0-20230621 or later.
What is the CVSS score of CVE-2023-1260?
CVE-2023-1260 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-1260?
CVE-2023-1260 is classified under CWE-288: Authentication Bypass Using an Alternate Path or Channel (The product requires authentication, but the product has an alternate path or channel that does not require authentication.).
How can I check Go dependencies for CVE-2023-1260?
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-92hx-3mh6-hc49",
  "modified" : "2024-05-03T20:24:51Z",
  "published" : "2023-09-24T03:30:20Z",
  "aliases" : [ "CVE-2023-1260" ],
  "summary" : "kube-apiserver authentication bypass vulnerability",
  "details" : "An authentication bypass vulnerability was discovered in kube-apiserver. This issue could allow a remote, authenticated attacker who has been given permissions \"update, patch\" the \"pods/ephemeralcontainers\" subresource beyond what the default is. They would then need to create a new pod or patch one that they already have access to. This might allow evasion of SCC admission restrictions, thereby gaining control of a privileged pod.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openshift/apiserver-library-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20230621"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-1260"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/apiserver-library-go/commit/a994128188486d2dce99a528fbcc017d276081e0"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:3976"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:4093"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:4312"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:4898"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:5008"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-1260"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2176267"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-92hx-3mh6-hc49"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openshift/apiserver-library-go"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20231020-0010"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-288" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-25T18:32:19Z",
    "nvd_published_at" : "2023-09-24T01:15:42Z"
  }
}