cve.bz

CVE-2024-6174 canonical cloud-init: Improper Authentication

8.8 highEPSS 0.3%

High (8.8) in canonical cloud-init. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 19th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-06-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-287 Improper Authentication
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-6174 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-6174?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-6174?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-6174 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Canonical cloud-initfrom 0.7.9 before 25.1.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12cloud-init22.4.2-1+deb12u3DEBIAN-CVE-2024-6174
Debian13, 14cloud-init25.1.4-1DEBIAN-CVE-2024-6174
Ubuntu22.04:LTScloud-init25.1.4-0ubuntu0~22.04.1UBUNTU-CVE-2024-6174 USN-7677-1
Ubuntu24.04:LTScloud-init25.1.4-0ubuntu0~24.04.1UBUNTU-CVE-2024-6174 USN-7677-1
UbuntuPro:16.04:LTScloud-init21.1-19-gbad84ad4-0ubuntu1~16.04.4+esm2UBUNTU-CVE-2024-6174 USN-7677-1
UbuntuPro:18.04:LTScloud-init23.1.2-0ubuntu0~18.04.1+esm1UBUNTU-CVE-2024-6174 USN-7677-1
UbuntuPro:20.04:LTScloud-init24.4.1-0ubuntu0~20.04.3+esm1UBUNTU-CVE-2024-6174 USN-7677-1
Red Hatenterprise_linux:8::appstreamcloud-init0:23.4-7.el8_10.10RHSA-2025:11324
Red Hatenterprise_linux:9::appstreamcloud-init0:24.4-4.el9_6.3RHSA-2025:10848
Red Hatenterprise_linux:10.0cloud-init0:24.4-3.el10_0.2RHSA-2025:10844
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamcloud-init0:21.1-15.el8_6.4RHSA-2025:11337
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamcloud-init0:22.1-8.el8_8.2RHSA-2025:11339
Red Hatrhel_e4s:9.0::appstreamcloud-init0:21.1-19.el9_0.7RHSA-2025:11295
Red Hatrhel_e4s:9.2::appstreamcloud-init0:22.1-10.el9_2.1RHSA-2025:10879
Red Hatrhel_eus:9.4::appstreamcloud-init0:23.4-7.el9_4.13RHSA-2025:10876
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0cloud-init25.1.3-160000.2.1SUSE-RU-2026:20192-1
SUSELinux Micro 6.0cloud-init25.1.3-1.1SUSE-SU-2025:20656-1
SUSELinux Micro 6.1cloud-init25.1.3-slfo.1.1_1.1SUSE-SU-2025:20755-1
SUSELinux Micro 6.2cloud-init25.1.3-160000.2.1SUSE-RU-2026:20174-1
openSUSELeap 16.0cloud-init25.1.3-160000.2.1openSUSE-RU-2026:20129-1
openSUSETumbleweedcloud-init25.1.3-1.1openSUSE-SU-2025:15376-1
AlmaLinux8cloud-init23.4-7.el8_10.10.alma.1ALSA-2025:11324
AlmaLinux9cloud-init24.4-4.el9_6.3.alma.1ALSA-2025:10848
AlmaLinux10cloud-init24.4-3.el10_0.2ALSA-2025:10844
Rocky Linux8cloud-init0:23.4-7.el8_10.10.0.2RLSA-2025:11324
Azure Linux2cloud-init23.3-7AZL-64374
Azure Linux3cloud-init24.3.1-2AZL-64334
Alpaquita23, streamcloud-initno fix listedBELL-CVE-2024-6174

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is Important rather than Moderate because it directly impacts the security boundary between a system’s local environment and potentially untrusted network metadata sources. On non-x86 platforms, the fallback to platform enumeration with default datasource scanning could allow cloud-init to treat a malicious or spoofed local metadata service as authoritative, granting root-level execution of arbitrary user-data or scripts during early boot. Since cloud-init runs before most security controls are active, exploitation would provide persistent and unrestricted system compromise with no user interaction.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10cloud-init-0:24.4-3.el10_0.2Fixed 2025-07-14RHSA-2025:10844
Red Hat Enterprise Linux 8cloud-init-0:23.4-7.el8_10.10Fixed 2025-07-16RHSA-2025:11324
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportcloud-init-0:21.1-15.el8_6.4Fixed 2025-07-16RHSA-2025:11337
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicecloud-init-0:21.1-15.el8_6.4Fixed 2025-07-16RHSA-2025:11337
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionscloud-init-0:21.1-15.el8_6.4Fixed 2025-07-16RHSA-2025:11337
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicecloud-init-0:22.1-8.el8_8.2Fixed 2025-07-16RHSA-2025:11339
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionscloud-init-0:22.1-8.el8_8.2Fixed 2025-07-16RHSA-2025:11339
Red Hat Enterprise Linux 9cloud-init-0:24.4-4.el9_6.3Fixed 2025-07-14RHSA-2025:10848
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionscloud-init-0:21.1-19.el9_0.7Fixed 2025-07-16RHSA-2025:11295
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionscloud-init-0:22.1-10.el9_2.1Fixed 2025-07-14RHSA-2025:10879
Red Hat Enterprise Linux 9.4 Extended Update Supportcloud-init-0:23.4-7.el9_4.13Fixed 2025-07-14RHSA-2025:10876
Red Hat Enterprise Linux 7cloud-initOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-6174.

Attack patterns (CAPEC)

  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium
  • CAPEC-650 Upload a Web Shell to a Web Server Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON