Sensitive Data Exposure in Cloud-Init Logs - CVE-2023-1786

cloud-init Updated 02 Oct 2025

Summary

26/04/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-1786: Sensitive data could be exposed in logs of cloud-init before version 23.1.2. Affects cloud-init versions < 23.2-1. Fixed in 23.2-1. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Cloud-init is a widely used package in cloud computing environments that automates the initialization of cloud instances. It allows users to configure and customize their cloud instances at boot time, providing essential functionalities such as user data processing, network configuration, and package installation. However, prior to version 23.1.2, cloud-init had a vulnerability that could expose sensitive data in its logs, potentially leading to security breaches.

Vulnerability Detail

The vulnerability identified as CVE-2023-1786 allows sensitive data, including hashed passwords, to be logged by cloud-init before version 23.1.2. This exposure can be exploited by attackers to gain unauthorized access or escalate privileges within the system. The issue arises from improper handling of sensitive information, which is logged without adequate protection, making it accessible to anyone who can view the logs.

How To Fix

Minimum fixed version

23.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade 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 cloud-init logs by modifying file permissions or redirecting logs to a secure location where unauthorized users cannot access them. For example, you can change the permissions of the log file using the command: 'chmod 600 /var/log/cloud-init.log'.

Conclusion

CVE-2023-1786 is a critical vulnerability in cloud-init that exposes sensitive data in logs, posing a risk to system security. Users are strongly advised to update to the latest version to mitigate this risk. Implementing workarounds can provide temporary relief, but updating is the best long-term solution.

See every vulnerability recorded for cloud-init →

Share this vulnerability

FAQ

CVE-2023-1786 is a vulnerability in cloud-init that allows sensitive data to be exposed in logs, potentially leading to unauthorized access.

Versions of cloud-init prior to 23.1.2 are affected by this vulnerability.

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

If an immediate update is not possible, consider restricting access to the logs as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for cloud-init.

How To Fix

Minimum fixed version

23.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade 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