CVE-2024-33394: Kubevirt.io/kubevirt Kubevirt Allows A Local Attacker Vulnerability

MODERATE
Advisory Identifier: GHSA-4q63-mr2m-57hf
CVSS 5.9
CWE-94
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-33394
GHSA Identifier GHSA-4q63-mr2m-57hf
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Kubevirt.io/kubevirt
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

kubevirt.io/kubevirt fixed: Latest secure release
Upgrade kubevirt.io/kubevirt to Latest secure release
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 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

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.

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?
CVE-2024-33394 is a security vulnerability in Kubevirt.io/kubevirt involving kubevirt allows a local attacker to execute arbitrary code via a crafted command under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Kubevirt.io/kubevirt versions are affected?
Affected versions include releases prior to current release patches across affected packages: kubevirt.io/kubevirt.
What version fixes CVE-2024-33394?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is kubevirt.io/kubevirt affected?
Yes, kubevirt.io/kubevirt is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-33394?
CVE-2024-33394 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-33394?
CVE-2024-33394 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check Go dependencies for CVE-2024-33394?
Run the dependency tree command: 'inspect dependencies for kubevirt.io/kubevirt'. 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-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"
  }
}