CVE-2024-9486: Github.com/kubernetes sigs/image builder VM Images Built With Image Vulnerability

CRITICAL
Advisory Identifier: GHSA-9224-ggvw-wh7v
CVSS 9.8
CWE-798
Published
Advisory Summary

CVE-2024-9486 is a CRITICAL (CVSS 9.8) vm images built with image vulnerability (CWE-798: Use of Hard-coded Credentials) affecting Github.com/kubernetes sigs/image builder libraries in the Go ecosystem. The issue involves vm images built with image builder and proxmox provider use default credentials in github.com/kubernetes-sigs/image-builder. Remediation is available by upgrading affected packages to version 0.1.38.

CVE-2024-9486 at a Glance

CVE Identifier CVE-2024-9486
GHSA Identifier GHSA-9224-ggvw-wh7v
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-798: Use of Hard-coded Credentials
Affected Product Github.com/kubernetes sigs/image builder
Package Ecosystem Go
Published Date
Last Updated

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

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

How to Fix CVE-2024-9486

To remediate this vulnerability, upgrade all affected Github.com/kubernetes sigs/image builder 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/kubernetes-sigs/image-builder fixed: 0.1.38
Upgrade github.com/kubernetes-sigs/image-builder to 0.1.38
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/kubernetes-sigs/image-builder

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-9486, inspect your project dependencies for Github.com/kubernetes sigs/image builder:

inspect dependencies for github.com/kubernetes-sigs/image-builder

Analyze the terminal output to locate any version of Github.com/kubernetes sigs/image builder in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.38), 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-798: Use of Hard-coded Credentials, where the product contains hard-coded credentials, such as a password or cryptographic key. In Github.com/kubernetes sigs/image builder, 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 security issue was discovered in the Kubernetes Image Builder versions <= v0.1.37 where default credentials are enabled during the image build process. Virtual machine images built using the Proxmox provider do not disable these default credentials, and nodes using the resulting images may be accessible via these default credentials. The credentials can be used to gain root access. Kubernetes clusters are only affected if their nodes use VM images created via the Image Builder project with its Proxmox provider.

CVE-2024-9486 Affected Github.com/kubernetes sigs/image builder Versions

1 component(s)
Fixed Versions:
0.1.38
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kubernetes-sigs/image-builder
Go
< 0.1.38
0.1.38

References

Frequently Asked Questions

What is CVE-2024-9486?
CVE-2024-9486 is a security vulnerability in Github.com/kubernetes sigs/image builder involving VM images built with Image Builder and Proxmox provider use default credentials in github.com/kubernetes-sigs/image-builder under CWE-798: Use of Hard-coded Credentials.
Which Github.com/kubernetes sigs/image builder versions are affected?
Affected versions include releases prior to 0.1.38 across affected packages: github.com/kubernetes-sigs/image-builder.
What version fixes CVE-2024-9486?
Upgrading to 0.1.38 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kubernetes-sigs/image-builder affected?
Yes, github.com/kubernetes-sigs/image-builder is affected in releases prior to 0.1.38. Upgrade your dependency to 0.1.38 or later.
What is the CVSS score of CVE-2024-9486?
CVE-2024-9486 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-9486?
CVE-2024-9486 is classified under CWE-798: Use of Hard-coded Credentials (The product contains hard-coded credentials, such as a password or cryptographic key.).
How can I check Go dependencies for CVE-2024-9486?
Run the dependency tree command: 'inspect dependencies for github.com/kubernetes-sigs/image-builder'. 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-9224-ggvw-wh7v",
  "modified" : "2024-11-08T22:16:35Z",
  "published" : "2024-10-15T21:30:39Z",
  "aliases" : [ "CVE-2024-9486" ],
  "summary" : "VM images built with Image Builder and Proxmox provider use default credentials in github.com/kubernetes-sigs/image-builder",
  "details" : "A security issue was discovered in the Kubernetes Image Builder versions <= v0.1.37 where default credentials are enabled during the image build process. Virtual machine images built using the Proxmox provider do not disable these default credentials, and nodes using the resulting images may be accessible via these default credentials. The credentials can be used to gain root access. Kubernetes clusters are only affected if their nodes use VM images created via the Image Builder project with its Proxmox provider.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kubernetes-sigs/image-builder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.38"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-9486"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kubernetes/issues/128006"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes-sigs/image-builder/pull/1595"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubernetes-sigs/image-builder"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/kubernetes-security-announce/c/UKJG-oZogfA/m/Lu1hcnHmAQAJ"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-798" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-17T20:28:15Z",
    "nvd_published_at" : "2024-10-15T21:15:11Z"
  }
}