{"answers":{"affected":"","exploited":"There is no known exploitation of ALBA-2022:4697 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"ALBA-2022:4697 is a vulnerability in cloud-init, published on 23 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for ALBA-2022:4697 and fix it if it is affected.\n\nWhat it is: ALBA-2022:4697 is a vulnerability in cloud-init, published on 23 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of ALBA-2022:4697 in the wild and no public exploit code.\n\nAffected product: 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/ALBA-2022-4697/ (Markdown: https://insights.sbomify.com/ALBA-2022-4697/index.md)","id":"ALBA-2022:4697","markdown":"https://insights.sbomify.com/ALBA-2022-4697/index.md","name":"ALBA-2022:4697","record":{"aliases":[],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"Cloud initialization tool","requires_auth":"none","summary":"Cloud-init failed to handle SSH keys with carriage returns, preventing instance initialization on Azure; this update fixes the parsing logic.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"The cloud-init packages provide a set of init scripts for cloud instances. Cloud instances need special scripts to run during initialization to retrieve and install SSH keys, and to let the user run various scripts.\n\nBug Fix:\n\n* Previously, cloud-init incorrectly handled SSH keys containing \\r\\n characters. As a consequence, cloud-init could not be used in Microsoft Azure. This update has changed how cloud-init handles SSH keys so the described keys work as expected in Azure. (BZ#2088028)","ecosystems":["AlmaLinux:8"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"cloud-init bug fix update","id":"ALBA-2022:4697","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":null,"product":null,"products":[],"type":"other","year":"2022"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"AlmaLinux:8","fixed":["21.1-15.el8.alma"],"introduced":["0"],"last_affected":[],"package":"cloud-init","purl":"pkg:rpm/almalinux/cloud-init","source":"ALBA-2022:4697"}],"products":null,"published":"2022-05-23","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALBA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Cloud-init failed to handle SSH keys with carriage returns, preventing instance initialization on Azure; this update fixes the parsing logic.","url":"https://insights.sbomify.com/ALBA-2022-4697/"}