CVE-2024-31420: Kubevirt.io/kubevirt KubeVirt NULL Pointer Dereference Flaw Vulnerability
MODERATECVE-2024-31420 is a MODERATE (CVSS 6.5) kubevirt null pointer dereference flaw vulnerability (CWE-476: NULL Pointer Dereference) affecting Kubevirt.io/kubevirt libraries in the Go ecosystem. The issue involves kubevirt null pointer dereference flaw. Remediation is available in the latest vendor maintenance releases.
CVE-2024-31420 at a Glance
Security Impact
CVSS: 6.5
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:N/I:N/A:H).
How to Fix CVE-2024-31420
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-31420, 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-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. 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-31420 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-31420?
Which Kubevirt.io/kubevirt versions are affected?
What version fixes CVE-2024-31420?
Is kubevirt.io/kubevirt affected?
What is the CVSS score of CVE-2024-31420?
What CWE is associated with CVE-2024-31420?
How can I check Go dependencies for CVE-2024-31420?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vjhf-6xfr-5p9g",
"modified" : "2024-04-03T18:46:15Z",
"published" : "2024-04-03T15:30:42Z",
"aliases" : [ "CVE-2024-31420" ],
"summary" : "KubeVirt NULL pointer dereference flaw",
"details" : "A NULL pointer dereference flaw was found in KubeVirt. This flaw allows an attacker who has access to a virtual machine guest on a node with DownwardMetrics enabled to cause a denial of service by issuing a high number of calls to vm-dump-metrics --virtio and then deleting the virtual machine.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
} ],
"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-31420"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2024-31420"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2272951"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kubevirt/kubevirt"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-476" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-03T18:04:42Z",
"nvd_published_at" : "2024-04-03T14:15:18Z"
}
}