CVE-2024-33394: Kubevirt.io/kubevirt Kubevirt Allows A Local Attacker Vulnerability
MODERATECVE-2024-33394 is a MODERATE (CVSS 5.9) kubevirt allows a local attacker vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Kubevirt.io/kubevirt libraries in the Go ecosystem. The issue involves kubevirt allows a local attacker to execute arbitrary code via a crafted command. Remediation is available in the latest vendor maintenance releases.
CVE-2024-33394 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-33394
To remediate this vulnerability, upgrade all affected Kubevirt.io/kubevirt 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 kubevirt.io/kubevirt to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for kubevirt.io/kubevirt
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-33394, inspect your project dependencies for Kubevirt.io/kubevirt:
inspect dependencies for kubevirt.io/kubevirt
Analyze the terminal output to locate any version of Kubevirt.io/kubevirt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Kubevirt.io/kubevirt, 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-2024-33394 Affected Kubevirt.io/kubevirt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
kubevirt.io/kubevirt
|
Go |
≤ 1.2.0
|
|
References
Frequently Asked Questions
What is CVE-2024-33394?
Which Kubevirt.io/kubevirt versions are affected?
What version fixes CVE-2024-33394?
Is kubevirt.io/kubevirt affected?
What is the CVSS score of CVE-2024-33394?
What CWE is associated with CVE-2024-33394?
How can I check Go dependencies for CVE-2024-33394?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4q63-mr2m-57hf",
"modified" : "2024-07-03T20:12:42Z",
"published" : "2024-05-02T18:30:55Z",
"aliases" : [ "CVE-2024-33394" ],
"summary" : "kubevirt allows a local attacker to execute arbitrary code via a crafted command ",
"details" : "An issue in kubevirt kubevirt v1.2.0 and before allows a local attacker to execute arbitrary code via a crafted command to get the token component.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "kubevirt.io/kubevirt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-33394"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/HouqiyuA/1b75e23ece7ad98490aec1c887bdf49b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kubevirt/kubevirt"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-03T20:15:34Z",
"nvd_published_at" : "2024-05-02T18:15:07Z"
}
}