Critical Security Flaw in cloud-init Package: Permissions Vulnerability

cloud-init Updated 02 Oct 2025

Summary

14/07/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:10844: Important: cloud-init security update. Affects cloud-init versions < 24.4-3.el10_0.2. Fixed in 24.4-3.el10_0.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The cloud-init package is essential for cloud instances, providing a set of initialization scripts that automate the retrieval and installation of SSH keys and allow users to execute various scripts during the instance setup. This functionality is crucial for ensuring secure and efficient cloud operations, but it also makes the package a target for vulnerabilities that could compromise cloud security.

Vulnerability Detail

The vulnerability identified as CVE-2024-6174 is a permissions flaw within the cloud-init package. This issue arises from inadequate permission settings, potentially allowing unauthorized access to sensitive operations or data within cloud instances. If exploited, this vulnerability could lead to unauthorized users gaining access to SSH keys or executing arbitrary scripts, posing significant security risks to cloud environments.

How To Fix

Minimum fixed version

24.4-3.el10_0.2

This is the first release that contains the fix.

sudo dnf update cloud-init

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can restrict access to the cloud-init scripts and configuration files by modifying their permissions. This can be done using the command: 'chmod 700 /etc/cloud/cloud.cfg.d/*'. However, this is not a permanent fix and updating the package is strongly advised.

Conclusion

The cloud-init package has a critical permissions vulnerability (CVE-2024-6174) that could expose cloud instances to unauthorized access. It is crucial to update to the patched version 24.4-3.el10_0.2 to ensure security. Users should also consider implementing temporary workarounds until the update can be applied.

See every vulnerability recorded for cloud-init →

Share this vulnerability

FAQ

The impact includes potential unauthorized access to SSH keys and the ability for malicious users to execute scripts, compromising the security of cloud instances.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If immediate updates are not possible, implement the suggested workaround to restrict access to cloud-init scripts until the package can be updated.

Yes, the vulnerability affects versions prior to 24.4-3.el10_0.2. Updating to this version or later is essential to mitigate the risk.

More details can be found on the CVE page associated with CVE-2024-6174, which provides insights into the vulnerability's impact and mitigation strategies.

Related vulnerabilities

Recent vulnerabilities recorded for cloud-init.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

24.4-3.el10_0.2

This is the first release that contains the fix.

sudo dnf update cloud-init

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback