CVE-2020-2023: Github.com/kata containers/agent Improper Privilege Management And Execution Vulnerability
MODERATECVE-2020-2023 is a MODERATE (CVSS 9.8) improper privilege management and execution vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/kata containers/agent libraries in the Go ecosystem. The issue involves improper privilege management and execution with unnecessary privileges in kata containers. Remediation is available by upgrading affected packages to version 1.9.1, 1.10.5, 1.11.1.
CVE-2020-2023 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2020-2023
To remediate this vulnerability, upgrade all affected Github.com/kata containers/agent 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/kata-containers/agent to 1.9.1
Upgrade github.com/kata-containers/agent to 1.10.5
Upgrade github.com/kata-containers/agent to 1.11.1
Upgrade github.com/kata-containers/runtime to 1.9.1
Upgrade github.com/kata-containers/runtime to 1.10.5
Upgrade github.com/kata-containers/runtime to 1.11.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/kata-containers/agent
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-2023, inspect your project dependencies for Github.com/kata containers/agent:
inspect dependencies for github.com/kata-containers/agent
Analyze the terminal output to locate any version of Github.com/kata containers/agent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Github.com/kata containers/agent, 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-2020-2023 Affected Github.com/kata containers/agent Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/kata-containers/agent
|
Go |
< 1.9.1
|
1.9.1
|
|
github.com/kata-containers/agent
|
Go |
≥ 1.10.0
< 1.10.5
|
1.10.5
|
|
github.com/kata-containers/agent
|
Go |
≥ 1.11.0
< 1.11.1
|
1.11.1
|
|
github.com/kata-containers/runtime
|
Go |
< 1.9.1
|
1.9.1
|
|
github.com/kata-containers/runtime
|
Go |
≥ 1.10.0
< 1.10.5
|
1.10.5
|
|
github.com/kata-containers/runtime
|
Go |
≥ 1.11.0
< 1.11.1
|
1.11.1
|
References
Frequently Asked Questions
What is CVE-2020-2023?
Which Github.com/kata containers/agent versions are affected?
What version fixes CVE-2020-2023?
Is github.com/kata-containers/agent affected?
Is github.com/kata-containers/runtime affected?
What is the CVSS score of CVE-2020-2023?
What CWE is associated with CVE-2020-2023?
How can I check Go dependencies for CVE-2020-2023?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6978-vg2j-cc9q",
"modified" : "2021-10-20T17:38:18Z",
"published" : "2022-02-15T01:57:18Z",
"aliases" : [ "CVE-2020-2023" ],
"summary" : "Improper Privilege Management and Execution with Unnecessary Privileges in Kata Containers",
"details" : "Kata Containers doesn't restrict containers from accessing the guest's root filesystem device. Malicious containers can exploit this to gain code execution on the guest and masquerade as the kata-agent. This issue affects Kata Containers 1.11 versions earlier than 1.11.1; Kata Containers 1.10 versions earlier than 1.10.5; and Kata Containers 1.9 and earlier versions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kata-containers/agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.9"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kata-containers/agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "1.10.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kata-containers/agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kata-containers/runtime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.9"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kata-containers/runtime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "1.10.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kata-containers/runtime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-2023"
}, {
"type" : "WEB",
"url" : "https://github.com/kata-containers/agent/issues/791"
}, {
"type" : "WEB",
"url" : "https://github.com/kata-containers/runtime/issues/2488"
}, {
"type" : "WEB",
"url" : "https://github.com/kata-containers/agent/pull/792"
}, {
"type" : "WEB",
"url" : "https://github.com/kata-containers/runtime/pull/2477"
}, {
"type" : "WEB",
"url" : "https://github.com/kata-containers/runtime/pull/2487"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kata-containers"
}, {
"type" : "WEB",
"url" : "https://github.com/kata-containers/runtime/releases/tag/1.10.5"
}, {
"type" : "WEB",
"url" : "https://github.com/kata-containers/runtime/releases/tag/1.11.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-250", "CWE-269" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-13T19:41:22Z",
"nvd_published_at" : "2020-06-10T18:15:00Z"
}
}