CVE-2022-0532: Github.com/cri o/cri o Remote Code Execution Vulnerability
MODERATECVE-2022-0532 is a MODERATE (CVSS 4.2) remote code execution vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Github.com/cri o/cri o libraries in the Go ecosystem. The issue involves incorrect permission assignment for critical resource in cri-o. Remediation is available by upgrading affected packages to version 1.23.1.
CVE-2022-0532 at a Glance
Security Impact
CVSS: 4.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:L).
How to Fix CVE-2022-0532
To remediate this vulnerability, upgrade all affected Github.com/cri o/cri o 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/cri-o/cri-o to 1.23.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/cri-o/cri-o
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-0532, inspect your project dependencies for Github.com/cri o/cri o:
inspect dependencies for github.com/cri-o/cri-o
Analyze the terminal output to locate any version of Github.com/cri o/cri o in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.23.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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Github.com/cri o/cri o, 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-2022-0532 Affected Github.com/cri o/cri o Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/cri-o/cri-o
|
Go |
< 1.23.1
|
1.23.1
|
References
Frequently Asked Questions
What is CVE-2022-0532?
Which Github.com/cri o/cri o versions are affected?
What version fixes CVE-2022-0532?
Is github.com/cri-o/cri-o affected?
What is the CVSS score of CVE-2022-0532?
What CWE is associated with CVE-2022-0532?
How can I check Go dependencies for CVE-2022-0532?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jqmc-79gx-7g8p",
"modified" : "2022-02-23T22:00:51Z",
"published" : "2022-02-11T00:00:54Z",
"aliases" : [ "CVE-2022-0532" ],
"summary" : "Incorrect Permission Assignment for Critical Resource in CRI-O",
"details" : "An incorrect sysctls validation vulnerability was found in CRI-O 1.18 and earlier. The sysctls from the list of \"safe\" sysctls specified for the cluster will be applied to the host if an attacker is able to create a pod with a hostIPC and hostNetwork kernel namespace.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/cri-o/cri-o"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.23.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0532"
}, {
"type" : "WEB",
"url" : "https://github.com/cri-o/cri-o/pull/5610"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2051730"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cri-o/cri-o"
}, {
"type" : "WEB",
"url" : "https://github.com/cri-o/cri-o/releases/tag/v1.23.1"
}, {
"type" : "WEB",
"url" : "https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-732" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-11T18:50:08Z",
"nvd_published_at" : "2022-02-09T23:15:00Z"
}
}