Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-1786

CVE-2023-1786: Cloud-init Information Disclosure Flaw

CVE-2023-1786 is an information disclosure vulnerability in Canonical Cloud-init that exposes sensitive data in logs, potentially revealing hashed passwords. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-1786 Overview

CVE-2023-1786 is an Information Leakage vulnerability affecting Canonical's cloud-init, a widely-used tool for initializing cloud instances across major platforms. The vulnerability allows sensitive data, including hashed passwords, to be exposed in cloud-init log files. An attacker with local access could leverage this information disclosure to obtain credential hashes and potentially escalate their privileges within the affected system.

Critical Impact

Sensitive data including hashed passwords may be exposed in cloud-init logs, enabling attackers with local access to harvest credentials and potentially escalate privileges across cloud infrastructure.

Affected Products

  • Canonical cloud-init (versions prior to 23.1.2)
  • Canonical Ubuntu Linux (16.04 ESM, 18.04 ESM, 20.04 LTS, 22.04 LTS, 22.10, 23.04)
  • Fedora 38

Discovery Timeline

  • April 26, 2023 - CVE-2023-1786 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-1786

Vulnerability Analysis

This vulnerability stems from improper handling of sensitive information within cloud-init's logging functionality (CWE-532: Insertion of Sensitive Information into Log File). Cloud-init processes user data and vendor data during instance initialization, which may contain sensitive configuration details including password hashes, authentication tokens, and other credentials.

Prior to version 23.1.2, cloud-init did not properly sanitize or restrict the logging of this sensitive data. When cloud-init processes data sources from various providers (including LXD and Vultr as shown in the patch), user and vendor data containing credentials would be written to log files with permissive read access.

The attack requires local access to the system, allowing an attacker to read the cloud-init log files (typically located at /var/log/cloud-init.log and /var/log/cloud-init-output.log) and extract hashed passwords or other sensitive configuration data. This information could then be used for offline password cracking or to further compromise the system.

Root Cause

The root cause lies in cloud-init's data source handlers not treating user data and vendor data as sensitive information. The logging mechanisms would output this data without redaction, and log files were created with overly permissive file permissions allowing unauthorized users to read their contents. The fix implemented in version 23.1.2 marks user/vendor data as sensitive and removes inappropriate log permissions.

Attack Vector

The attack vector is local, requiring the attacker to have some level of access to the affected system. The exploitation flow involves:

  1. An attacker gains initial low-privilege access to a cloud instance running a vulnerable version of cloud-init
  2. The attacker reads cloud-init log files which may contain sensitive initialization data
  3. Hashed passwords and other credentials are extracted from the logs
  4. The attacker performs offline cracking of password hashes or uses exposed credentials
  5. Successful credential recovery enables privilege escalation or lateral movement
python
# Security patch in cloudinit/sources/DataSourceLXD.py
# Make user/vendor data sensitive and remove log permissions (#2144)
 import time
 from enum import Flag, auto
 from json.decoder import JSONDecodeError
-from typing import Any, Dict, List, Optional, Union, cast
+from typing import Any, Dict, List, Optional, Tuple, Union, cast
 
 import requests
 from requests.adapters import HTTPAdapter

Source: GitHub Cloud-Init Commit

python
# Security patch in cloudinit/sources/DataSourceVultr.py
# Make user/vendor data sensitive and remove log permissions (#2144)
 # Vultr Metadata API:
 # https://www.vultr.com/metadata/

+from typing import Tuple
+
 import cloudinit.sources.helpers.vultr as vultr
 from cloudinit import log as log
 from cloudinit import sources, stages, util, version

Source: GitHub Cloud-Init Commit

Detection Methods for CVE-2023-1786

Indicators of Compromise

  • Unusual read access to /var/log/cloud-init.log or /var/log/cloud-init-output.log by non-root users
  • Evidence of password hash extraction patterns in system audit logs
  • Suspicious offline authentication attempts following cloud instance access
  • Unauthorized access to cloud-init log directories from non-administrative accounts

Detection Strategies

  • Monitor file access patterns to cloud-init log files using auditd rules targeting /var/log/cloud-init*
  • Implement file integrity monitoring (FIM) to detect unauthorized access to sensitive log locations
  • Review cloud-init log file permissions across fleet instances to identify vulnerable configurations
  • Correlate local access events with subsequent privilege escalation attempts

Monitoring Recommendations

  • Enable verbose audit logging for read operations on /var/log/cloud-init.log and related files
  • Deploy SentinelOne agents configured to detect credential harvesting behaviors and log file enumeration
  • Establish baseline access patterns for cloud-init logs and alert on deviations
  • Integrate cloud instance telemetry with SIEM platforms to correlate local access with credential abuse

How to Mitigate CVE-2023-1786

Immediate Actions Required

  • Upgrade cloud-init to version 23.1.2 or later across all affected systems
  • Review and restrict permissions on existing cloud-init log files (chmod 600 /var/log/cloud-init*.log)
  • Audit cloud instances for evidence of log file access by unauthorized users
  • Rotate any credentials that may have been exposed in cloud-init logs prior to patching

Patch Information

Canonical has released cloud-init version 23.1.2 which addresses this vulnerability by marking user and vendor data as sensitive and implementing proper log file permission restrictions. The fix is available through the GitHub Cloud-Init Commit.

Ubuntu users should apply the updates detailed in Ubuntu Security Notice USN-6042-1. Fedora users should refer to the Fedora Package Announcement for patched packages.

For additional technical details, see the Launchpad Bug Report.

Workarounds

  • Restrict read access to cloud-init log files by setting appropriate file permissions
  • Configure cloud-init to minimize logged data where possible pending upgrade
  • Implement host-based access controls to limit which users can access log directories
  • Consider log rotation with secure deletion to minimize exposure window of sensitive data
bash
# Restrict permissions on cloud-init log files
sudo chmod 600 /var/log/cloud-init.log
sudo chmod 600 /var/log/cloud-init-output.log

# Set restrictive permissions on log directory
sudo chmod 750 /var/log/cloud-init/

# Verify cloud-init version
cloud-init --version

# Update cloud-init on Ubuntu
sudo apt update && sudo apt install cloud-init

# Update cloud-init on Fedora
sudo dnf update cloud-init

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechCloud Init

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-532
  • Technical References
  • Launchpad Bug Report

  • Fedora Package Announcement

  • Ubuntu Security Notice USN-6042-1
  • Vendor Resources
  • GitHub Cloud-Init Commit
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English