CVE-2023-5536
Medium · 6.4CVSS
6.4
EPSS
0.2%
Published
Dec 12, 2023
CISA due date
—
Cloudanix analysis
On Ubuntu servers a built-in setting lets certain logged-in users take over the entire machine without typing any extra password.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- High
- Impact
- Privilege Gain
- Component
- Application
- Class
- Privilege Escalation
- Remediation
- Config Change
- Effort
- Low
- Patch risk
- None
What it actually does
Members of the lxd group can invoke LXD operations that mount the host filesystem into a container and chroot into it, resulting in an immediate root shell on the host without any password prompt.
Why it matters to the business
Any local account placed in the lxd group gains unrestricted root access, allowing complete takeover of the Ubuntu server and all data and services it hosts.
How an attack unfolds
An attacker who obtains or already possesses membership in the lxd group runs a short sequence of lxc commands that creates a privileged container, mounts the host root filesystem, and executes a shell inside that container, immediately yielding root on the host.
How to fix it
Remove untrusted accounts from the lxd group, enforce sudo password requirements for lxd-related commands via /etc/sudoers.d, or restrict LXD socket access to a smaller trusted set of users; apply any subsequent Ubuntu package updates that harden the default LXD configuration.
How to confirm the fix worked
Confirm that non-root users in the lxd group cannot obtain a root shell via lxc commands; verify that the LXD socket permissions and sudoers rules require authentication; re-run the original LP#1829071 reproduction steps after changes.
Typical attack path
- Obtain or be granted membership in the lxd group
- Run lxc init to create a privileged container
- Configure the container to mount the host root filesystem
- Start the container and execute a shell via lxc exec
- Obtain root shell on the host
How to detect it
Review authentication logs and sudo logs for lxc invocations by non-root users; inspect shell history files and process creation events for sequences of lxc init, lxc config device add, and lxc exec commands that target the host root filesystem.
What your security team should do
- Audit current membership of the lxd group on all Ubuntu servers and remove unnecessary accounts immediately
- Add explicit sudo password requirements for lxd operations in sudoers configuration
- Monitor package updates from Canonical and apply any LXD hardening fixes as soon as they are released
- Prefer dedicated service accounts with minimal group memberships instead of adding operators to lxd
The record
A feature in LXD (LP#1829071), affects the default configuration of Ubuntu Server which allows privileged users in the lxd group to escalate their privilege to root without requiring a sudo password.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | subiquity | 0 | No fix |
| Ubuntu:20.04:LTS | cloud-init | 0 | No fix |
| Ubuntu:20.04:LTS | subiquity | 0 | No fix |
| Ubuntu:22.04:LTS | cloud-init | 0 | No fix |
| Ubuntu:22.04:LTS | subiquity | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | cloud-init | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | cloud-init | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | subiquity | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | cloud-init | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | subiquity | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | subiquity | 0 | No fix |
Related vulnerabilities
- CVE-2022-0555 Subiquity Shows Guided Storage Passphrase in Plaintext with Read-all Permissions Also affects subiquity
- CVE-2026-11813 A potential improper permissions vulnerability was reported in the Lenovo Filez Client… CWE-276
- CVE-2026-52766 YesWiki is a wiki system written in PHP. CWE-276
- CVE-2026-77393 In Ignition 8.1.53 and earlier, the Gateway "Create Project Role(s)" setting shipped… CWE-276
- CVE-2026-75166 Insecure Permission vulnerability in MBS-Solutions X-Serie Gateway firmware V6_00_05… CWE-276
- CVE-2026-81302 PALLET CONTROL products contain an incorrect default permission vulnerability, which may… CWE-276
- CVE-2026-9634 A security issue exists within the Redundancy Module Configuration Tool. CWE-276
- CVE-2026-9633 A security issue exists within the Redundancy Module Configuration Tool. CWE-276