{"answers":{"affected":"3 open source packages ship an affected version, including github.com/kubernetes-sigs/image-builder. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-9594 in the wild and no public exploit code.","fix":"Upgrade github.com/kubernetes-sigs/image-builder to 0.1.38 or later.","what":"CVE-2024-9594 is a medium-severity vulnerability in Kubernetes Image Builder, published on 15 Oct 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-9594 and fix it if it is affected.\n\nWhat it is: CVE-2024-9594 is a medium-severity vulnerability in Kubernetes Image Builder, published on 15 Oct 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-9594 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/kubernetes-sigs/image-builder (Go): affected all versions; fixed in 0.1.38\n- github.com/kubernetes-sigs/image-builder (Go): affected all versions; fixed in 0.1.38\n- github.com/kubernetes-sigs/image-builder (Go): affected all versions; fixed in 0.1.38\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-9594/ (Markdown: https://insights.sbomify.com/CVE-2024-9594/index.md)","id":"CVE-2024-9594","markdown":"https://insights.sbomify.com/CVE-2024-9594/index.md","name":"CVE-2024-9594","record":{"aliases":["GHSA-8jpg-62jc-hwhr","GO-2024-3204"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kubernetes Image Builder","requires_auth":"high_privilege","summary":"Attackers with network access to the build VM can use default credentials to gain root access and modify the image during the build process.","user_interaction":"required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[{"product":"image_builder","vendor":"kubernetes-sigs"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-798","name":"Use of Hard-coded Credentials"}],"description":"A security issue was discovered in the Kubernetes Image Builder versions \u003c= 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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"VM images built with Image Builder with some providers use default credentials during builds","id":"CVE-2024-9594","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"hardcoded_credentials","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"TablePress \u003c= 2.4.2 - Authenticated (Author+) Stored Cross-Site Scripting","id":"CVE-2024-9595"},"packages":[{"ecosystem":"Go","fixed":["0.1.38"],"introduced":["0"],"last_affected":[],"package":"github.com/kubernetes-sigs/image-builder","purl":null,"source":"GHSA-8jpg-62jc-hwhr"},{"ecosystem":"Go","fixed":["0.1.38"],"introduced":["0"],"last_affected":[],"package":"github.com/kubernetes-sigs/image-builder","purl":"pkg:golang/github.com/kubernetes-sigs/image-builder","source":"GHSA-8jpg-62jc-hwhr"},{"ecosystem":"Go","fixed":["0.1.38"],"introduced":["0"],"last_affected":[],"package":"github.com/kubernetes-sigs/image-builder","purl":"pkg:golang/github.com/kubernetes-sigs/image-builder","source":"GO-2024-3204"}],"prev":{"headline":"Time Clock \u003c= 1.2.2 \u0026 Time Clock Pro \u003c= 1.1.4 - Unauthenticated (Limited) Remote Code Execution","id":"CVE-2024-9593"},"products":["Image Builder"],"published":"2024-10-15","related":[{"cvss_score":9.8,"headline":"VM images built with Image Builder and Proxmox provider use default credentials","id":"CVE-2024-9486","kev_date_added":null,"published":"2024-10-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-16","vendors":["Kubernetes"]},"summary":"Attackers with network access to the build VM can use default credentials to gain root access and modify the image during the build process.","url":"https://insights.sbomify.com/CVE-2024-9594/"}