CVE-2024-1725: kubevirt-csi PersistentVolume Allows Access To HCP's Vulnerability

HIGH
Advisory Identifier: GHSA-fg9q-5cw2-p6r9
CVSS 8.1
CWE-501
Published
Advisory Summary

CVE-2024-1725 is a HIGH (CVSS 8.1) persistentvolume allows access to hcp's vulnerability (CWE-501: Trust Boundary Violation) affecting kubevirt-csi libraries in the Go ecosystem. The issue involves persistentvolume allows access to hcp's root node. Remediation is available by upgrading affected packages to version 0.0.0-202403081943-cc28dcbb0afc14.

CVE-2024-1725 at a Glance

CVE Identifier CVE-2024-1725
GHSA Identifier GHSA-fg9q-5cw2-p6r9
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-501: Trust Boundary Violation
Affected Product kubevirt-csi
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-1725

To remediate this vulnerability, upgrade all affected kubevirt-csi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/kubevirt/csi-driver fixed: 0.0.0-202403081943-cc28dcbb0afc14
Upgrade github.com/kubevirt/csi-driver to 0.0.0-202403081943-cc28dcbb0afc14
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 github.com/kubevirt/csi-driver

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-1725, inspect your project dependencies for kubevirt-csi:

inspect dependencies for github.com/kubevirt/csi-driver

Analyze the terminal output to locate any version of kubevirt-csi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-202403081943-cc28dcbb0afc14), 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-501: Trust Boundary Violation, where the product mixes trusted and untrusted data in the same data structure or structured message. In kubevirt-csi, 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

A flaw was found in the kubevirt-csi component of OpenShift Virtualization's Hosted Control Plane (HCP). This issue could allow an authenticated attacker to gain access to the root HCP worker node's volume by creating a custom Persistent Volume that matches the name of a worker node.

CVE-2024-1725 Affected kubevirt-csi Versions

1 component(s)
Fixed Versions:
0.0.0-202403081943-cc28dcbb0afc14
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kubevirt/csi-driver
Go
< 0.0.0-202403081943-cc28dcbb0afc14
0.0.0-202403081943-cc28dcbb0afc14

References

Frequently Asked Questions

What is CVE-2024-1725?
CVE-2024-1725 is a security vulnerability in kubevirt-csi involving PersistentVolume allows access to HCP's root node under CWE-501: Trust Boundary Violation.
Which kubevirt-csi versions are affected?
Affected versions include releases prior to 0.0.0-202403081943-cc28dcbb0afc14 across affected packages: github.com/kubevirt/csi-driver.
What version fixes CVE-2024-1725?
Upgrading to 0.0.0-202403081943-cc28dcbb0afc14 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kubevirt/csi-driver affected?
Yes, github.com/kubevirt/csi-driver is affected in releases prior to 0.0.0-202403081943-cc28dcbb0afc14. Upgrade your dependency to 0.0.0-202403081943-cc28dcbb0afc14 or later.
What is the CVSS score of CVE-2024-1725?
CVE-2024-1725 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-1725?
CVE-2024-1725 is classified under CWE-501: Trust Boundary Violation (The product mixes trusted and untrusted data in the same data structure or structured message.).
How can I check Go dependencies for CVE-2024-1725?
Run the dependency tree command: 'inspect dependencies for github.com/kubevirt/csi-driver'. 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-fg9q-5cw2-p6r9",
  "modified" : "2025-03-14T19:54:12Z",
  "published" : "2024-03-07T21:30:21Z",
  "aliases" : [ "CVE-2024-1725" ],
  "summary" : "kubevirt-csi: PersistentVolume allows access to HCP's root node",
  "details" : "A flaw was found in the kubevirt-csi component of OpenShift Virtualization's Hosted Control Plane (HCP). This issue could allow an authenticated attacker to gain access to the root HCP worker node's volume by creating a custom Persistent Volume that matches the name of a worker node.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kubevirt/csi-driver"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-202403081943-cc28dcbb0afc14"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1725"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubevirt/csi-driver/commit/cc28dcbb0afca0a7cb8a73bc998ab49f864ed560"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1559"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1891"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2047"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-1725"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2265398"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubevirt/csi-driver"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3512"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-501" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-11T20:07:55Z",
    "nvd_published_at" : "2024-03-07T20:15:50Z"
  }
}