{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-6174 in the wild and no public exploit code.","fix":"Change a configuration setting.","what":"CVE-2024-6174 is a high-severity vulnerability in Canonical cloud-init, published on 26 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6174 and fix it if it is affected.\n\nWhat it is: CVE-2024-6174 is a high-severity vulnerability in Canonical cloud-init, published on 26 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-6174 in the wild and no public exploit code.\n\nAffected product: Canonical cloud-init. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-6174/ (Markdown: https://insights.sbomify.com/CVE-2024-6174/index.md)","id":"CVE-2024-6174","markdown":"https://insights.sbomify.com/CVE-2024-6174/index.md","name":"CVE-2024-6174","record":{"aliases":["ALSA-2025:10844","ALSA-2025:10848","ALSA-2025:11324","AZL-64334","AZL-64374","BELL-CVE-2024-6174","DEBIAN-CVE-2024-6174","GHSA-w8g9-wp36-fchj","OESA-2025-1783","RHSA-2025:10844","RHSA-2025:10848","RHSA-2025:10876","RHSA-2025:10879","RHSA-2025:11295","RHSA-2025:11324","RHSA-2025:11337","RHSA-2025:11339","RLSA-2025:11324","UBUNTU-CVE-2024-6174"],"analysis":{"component_type":"cloud_service","fix_type":"configuration_change","impacts":["privilege_escalation","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"cloud-init","requires_auth":"none","summary":"Attackers can gain root access on non-x86 platforms via a hardcoded URL if platform enumeration is enabled, requiring configuration changes to mitigate.","user_interaction":"not_required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"cloud-init","vendor":"canonical"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"description":"When a non-x86 platform is detected, cloud-init grants root access to a hardcoded url with a local IP address. To prevent this, cloud-init default configurations disable platform enumeration.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.8::appstream","Rocky Linux:8"],"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":"Hardcoded credentials in cloud-init","id":"CVE-2024-6174","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"hardcoded_credentials","year":"2024"},"n_packages":15,"n_references":1,"next":{"headline":"Booking Ultra Pro \u003c= 1.1.13 - Missing Authorization to Authenticated (Subscriber+) Plugin Settings Updates","id":"CVE-2024-6175"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["24.4-3.el10_0.2"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/almalinux/cloud-init","source":"ALSA-2025:10844"},{"ecosystem":"AlmaLinux:8","fixed":["23.4-7.el8_10.10.alma.1"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/almalinux/cloud-init","source":"ALSA-2025:11324"},{"ecosystem":"AlmaLinux:9","fixed":["24.4-4.el9_6.3.alma.1"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/almalinux/cloud-init","source":"ALSA-2025:10848"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:24.4-3.el10_0.2"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:10844"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:23.4-7.el8_10.10"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:11324"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:24.4-4.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:10848"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:21.1-15.el8_6.4"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:11337"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:21.1-15.el8_6.4"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:11337"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:22.1-8.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:11339"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["0:21.1-19.el9_0.7"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:11295"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:22.1-10.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:10879"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:23.4-7.el9_4.13"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:10876"},{"ecosystem":"Red Hat:rhel_tus:8.6::appstream","fixed":["0:21.1-15.el8_6.4"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:11337"},{"ecosystem":"Red Hat:rhel_tus:8.8::appstream","fixed":["0:22.1-8.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/redhat/cloud-init","source":"RHSA-2025:11339"},{"ecosystem":"Rocky Linux:8","fixed":["0:23.4-7.el8_10.10.0.2"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/rocky-linux/cloud-init?distro=rocky-linux-8-x86-64\u0026epoch=0","source":"RLSA-2025:11324"}],"prev":{"headline":"Denial of service in AXIS OS","id":"CVE-2024-6173"},"products":["cloud-init"],"published":"2025-06-26","related":[{"cvss_score":8.8,"headline":"Privilege escalation in cloud-init","id":"CVE-2012-6639","kev_date_added":null,"published":"2019-11-25"},{"cvss_score":5.9,"headline":"Privilege escalation in cloud-init","id":"CVE-2024-11584","kev_date_added":null,"published":"2025-06-26"},{"cvss_score":5.5,"headline":"sensitive data exposure in cloud-init logs","id":"CVE-2023-1786","kev_date_added":null,"published":"2023-04-26"},{"cvss_score":5.5,"headline":"sensitive data exposure in cloud-init logs","id":"CVE-2021-3429","kev_date_added":null,"published":"2023-04-19"},{"cvss_score":5.5,"headline":"sensitive data exposure in cloud-init logs","id":"CVE-2022-2084","kev_date_added":null,"published":"2023-04-19"},{"cvss_score":5.5,"headline":"Weak cryptography in n/a","id":"CVE-2020-8631","kev_date_added":null,"published":"2020-02-05"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"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":"2025-06-26","vendors":["Canonical"]},"summary":"Attackers can gain root access on non-x86 platforms via a hardcoded URL if platform enumeration is enabled, requiring configuration changes to mitigate.","url":"https://insights.sbomify.com/CVE-2024-6174/"}