Cloud-init Bug Fix Update - SSH Key Handling

cloud-init Updated 02 Oct 2025

Summary

23/05/2022
N/A
Yes i
Unrated
Not published

ALBA-2022:4697: cloud-init bug fix update. Affects cloud-init versions < 21.1-15.el8.alma. Fixed in 21.1-15.el8.alma. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Cloud-init is a set of init scripts designed for cloud instances. It provides functionality for retrieving and installing SSH keys during initialization, as well as executing user-defined scripts. These scripts are crucial for the proper functioning and security of cloud instances.

Vulnerability Detail

The vulnerability in cloud-init relates to the incorrect handling of SSH keys containing \r\n characters. This issue prevented cloud-init from being used in Microsoft Azure. The bug fix update addresses this problem by modifying how cloud-init handles SSH keys, ensuring that keys with \r\n characters function correctly in Azure. The vulnerability could have resulted in the inability to use cloud-init in Azure environments, potentially impacting the initialization and configuration of cloud instances.

How To Fix

Minimum fixed version

21.1-15.el8.alma

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

No specific workaround has been provided for this vulnerability.

Conclusion

The cloud-init bug fix update addresses a vulnerability related to the incorrect handling of SSH keys with \r\n characters. This vulnerability could have impacted the use of cloud-init in Microsoft Azure. To mitigate the issue, it is recommended to update the cloud-init package to the latest version. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for cloud-init →

Share this vulnerability

FAQ

Cloud-init is a collection of init scripts used for cloud instances. It facilitates the retrieval and installation of SSH keys, as well as the execution of user-defined scripts during initialization.

The vulnerability prevented the use of cloud-init in Microsoft Azure due to incorrect handling of SSH keys containing \r\n characters. This could have affected the initialization and configuration of cloud instances in Azure environments.

To fix the vulnerability, update the cloud-init package to version 21.1-15.el8.alma or later. This update addresses the incorrect handling of SSH keys with \r\n characters, allowing cloud-init to function properly in Azure.

No specific workaround has been provided for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for cloud-init.

How To Fix

Minimum fixed version

21.1-15.el8.alma

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