CVE-2023-0229: Github.com/openshift/apiserver library go Github.com/openshift/apiserver-library-go Improper Input Validation Vulnerability Vulnerability
MODERATECVE-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.
CVE-2023-0229 at a Glance
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).
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.
Upgrade github.com/openshift/apiserver-library-go to 0.0.0-20230120221150-cefee9e0162b
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
CVE-2023-0229 Affected Github.com/openshift/apiserver library go Versions
1 component(s)| 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?
Which Github.com/openshift/apiserver library go versions are affected?
What version fixes CVE-2023-0229?
Is github.com/openshift/apiserver-library-go affected?
What is the CVSS score of CVE-2023-0229?
What CWE is associated with CVE-2023-0229?
How can I check Go dependencies for CVE-2023-0229?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}