CVE-2023-1786: sensitive data exposure in cloud-init logs

Published Apr 26, 2023
·
Updated

Canonical cloud-init could allow a local authenticated attacker to obtain sensitive information, caused by the storage of sensitive data in the log files. By gaining access to the log files, an attacker could exploit this vulnerability to obtain hashed passwords information, and use this information to launch further attacks against the affected system.

Other sources

Sensitive data could be exposed in logs of cloud-init before version 23.1.2. An attacker could use this information to find hashed passwords and possibly escalate their privilege.

— Ubuntu

Affected Software

24 affected componentsFixes available
ubuntu/cloud-init<23.1.2-0ubuntu0~18.04.1
23.1.2-0ubuntu0~18.04.1
ubuntu/cloud-init<23.1.2-0ubuntu0~20.04.1
23.1.2-0ubuntu0~20.04.1
ubuntu/cloud-init<23.1.2-0ubuntu0~22.04.1
23.1.2-0ubuntu0~22.04.1
ubuntu/cloud-init<23.1.2-0ubuntu0~22.10.1
23.1.2-0ubuntu0~22.10.1
ubuntu/cloud-init<23.1.2-0ubuntu0~23.04.1
23.1.2-0ubuntu0~23.04.1
ubuntu/cloud-init<23.2, <23.1.2
23.223.1.2
ubuntu/cloud-init<21.1-19-
21.1-19-
debian/cloud-init<=20.4.1-2+deb11u1, <=22.4.2-1+deb12u1
24.2-1
IBM QRadar SIEM<=7.5 - 7.5.0 UP8 IF01
Canonical cloud-init<23.1.2
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Canonical Ubuntu Linux=22.04
Canonical Ubuntu Linux=22.10
Canonical Ubuntu Linux=23.04
Fedoraproject Fedora=38
alpine/cloud-init<23.1.2-r0
23.1.2-r0
alpine/cloud-init<23.1.2-r0
23.1.2-r0
alpine/cloud-init<23.1.2-r0
23.1.2-r0
alpine/cloud-init<23.1.2-r0
23.1.2-r0
alpine/cloud-init<23.1.2-r0
23.1.2-r0
alpine/cloud-init<23.1.2-r0
23.1.2-r0
alpine/cloud-init<23.1.2-r0
23.1.2-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/cloud-init to a version that resolves this vulnerability.

    Fixed in 23.1.2-0ubuntu0~18.04.1
  2. Upgrade

    Upgrade ubuntu/cloud-init to a version that resolves this vulnerability.

    Fixed in 23.1.2-0ubuntu0~20.04.1
  3. Upgrade

    Upgrade ubuntu/cloud-init to a version that resolves this vulnerability.

    Fixed in 23.1.2-0ubuntu0~22.04.1
  4. Upgrade

    Upgrade ubuntu/cloud-init to a version that resolves this vulnerability.

    Fixed in 23.1.2-0ubuntu0~22.10.1
  5. Upgrade

    Upgrade ubuntu/cloud-init to a version that resolves this vulnerability.

    Fixed in 23.1.2-0ubuntu0~23.04.1
  6. Upgrade

    Upgrade ubuntu/cloud-init to a version that resolves this vulnerability.

    Fixed in 23.2Fixed in 23.1.2
  7. Upgrade

    Upgrade ubuntu/cloud-init to a version that resolves this vulnerability.

    Fixed in 21.1-19-
  8. Upgrade

    Upgrade debian/cloud-init to a version that resolves this vulnerability.

    Fixed in 24.2-1
  9. Upgrade

    Upgrade cloud-init to a version that resolves this vulnerability.

    Fixed in 23.1.2

Event History

Apr 26, 2023
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·10:23 PM
Data Sourced
via MITRE·10:23 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2023-1786?

CVE-2023-1786 is a vulnerability in cloud-init before version 23.1.2 that could expose sensitive data in logs.

2

How can an attacker exploit CVE-2023-1786?

An attacker could use exposed sensitive information in cloud-init logs to find hashed passwords and potentially escalate their privilege.

3

What is the severity of CVE-2023-1786?

CVE-2023-1786 has a severity rating of 5.5 (medium).

4

Which software versions are affected by CVE-2023-1786?

Cloud-init versions before 23.1.2 are affected by CVE-2023-1786.

5

How do I fix CVE-2023-1786?

To fix CVE-2023-1786, update cloud-init to version 23.1.2 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203