CVE-2023-26604
Published: 3 March 2023
systemd before 247 does not adequately block local privilege escalation for some Sudo configurations, e.g., plausible sudoers files in which the "systemctl status" command may be executed. Specifically, systemd does not set LESSSECURE to 1, and thus other programs may be launched from the less program. This presents a substantial security risk when running systemctl from Sudo, because less executes as root when the terminal size is too small to show the complete systemctl output.
Notes
Author | Note |
---|---|
rodrigo-zaiden | on https://github.com/systemd/systemd/issues/5666 upstream claims this is not a vulnerability. upstream feature SYSTEMD_PAGERSECURE implemented in systemd version 247. |
mdeslaur | This is only an issue if an administrator configured systemctl access using sudo instead of using policykit, which is an unlikely scenario. Per Red Hat bug, systemctl commands that use the pager can run unprivileged. Setting priority to "low". |
Priority
Status
Package | Release | Status |
---|---|---|
systemd Launchpad, Ubuntu, Debian |
trusty |
Needs triage
|
xenial |
Needs triage
|
|
jammy |
Not vulnerable
(249.11-0ubuntu3.6)
|
|
kinetic |
Not vulnerable
(251.4-1ubuntu7)
|
|
upstream |
Needs triage
|
|
bionic |
Needed
|
|
focal |
Needed
|
|
lunar |
Not vulnerable
(252.4-1ubuntu1)
|
|
Patches: upstream: https://github.com/systemd/systemd/commit/612ebf6c913dd0e4197c44909cb3157f5c51a2f0 upstream: https://github.com/systemd/systemd/commit/0a42426d797406b4b01a0d9c13bb759c2629d108 upstream: https://github.com/systemd/systemd/commit/b8f736b30e20a2b44e7c34bb4e43b0d97ae77e3c |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 7.8 |
Attack vector | Local |
Attack complexity | Low |
Privileges required | Low |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | High |
Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-26604
- https://medium.com/@zenmoviefornotification/saidov-maxim-cve-2023-26604-c1232a526ba7
- https://github.com/systemd/systemd/blob/main/NEWS#L4335-L4340
- https://blog.compass-security.com/2012/10/dangerous-sudoers-entries-part-2-insecure-functionality/
- NVD
- Launchpad
- Debian