Cloud-init Bug Fix Update - SSH Key Handling
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
For more information about this vulnerability, refer to the AlmaLinux advisory ALBA-2022:4697 at https://github.com/AlmaLinux/osv-database/blob/master/advisories/almalinux8/ALBA-2022:4697.json
References
Related vulnerabilities
Recent vulnerabilities recorded for cloud-init.