CVE-2024-9594: Github.com/kubernetes sigs/image builder VM Images Built With Image Vulnerability
MODERATECVE-2024-9594 is a MODERATE (CVSS 6.3) 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 with some providers use default credentials during builds in github.com/kubernetes-sigs/image-builder. Remediation is available by upgrading affected packages to version 0.1.38.
CVE-2024-9594 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-9594
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.
Upgrade github.com/kubernetes-sigs/image-builder to 0.1.38
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-9594, 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
CVE-2024-9594 Affected Github.com/kubernetes sigs/image builder Versions
1 component(s)| 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-9594?
Which Github.com/kubernetes sigs/image builder versions are affected?
What version fixes CVE-2024-9594?
Is github.com/kubernetes-sigs/image-builder affected?
What is the CVSS score of CVE-2024-9594?
What CWE is associated with CVE-2024-9594?
How can I check Go dependencies for CVE-2024-9594?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8jpg-62jc-hwhr",
"modified" : "2024-11-08T22:16:25Z",
"published" : "2024-10-15T21:30:39Z",
"aliases" : [ "CVE-2024-9594" ],
"summary" : "VM images built with Image Builder with some providers use default credentials during builds 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 when using the Nutanix, OVA, QEMU or raw providers. The credentials can be used to gain root access. The credentials are disabled at the conclusion of the image build process. Kubernetes clusters are only affected if their nodes use VM images created via the Image Builder project. Because these images were vulnerable during the image build process, they are affected only if an attacker was able to reach the VM where the image build was happening and used the vulnerability to modify the image at the time the image build was occurring.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:P/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-9594"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes/kubernetes/issues/128007"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes-sigs/image-builder/pull/1596"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/kubernetes-security-announce/c/UKJG-oZogfA/m/Lu1hcnHmAQAJ"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-798" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-17T20:28:43Z",
"nvd_published_at" : "2024-10-15T21:15:11Z"
}
}