CVE-2023-26604
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | systemd | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | systemd | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | systemd | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | systemd | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | systemd | Fix pending | UBUNTU-CVE-2023-26604 | |
| Ubuntu 18.04 | systemd | Fix pending | UBUNTU-CVE-2023-26604 | |
| Ubuntu 16.04 | systemd | Fix pending | UBUNTU-CVE-2023-26604 | |
| Ubuntu 14.04 | systemd | Fix pending | UBUNTU-CVE-2023-26604 | |
| Debian 14 | systemd | Fixed | 247.1-2 | DEBIAN-CVE-2023-26604 |
| Debian 13 | systemd | Fixed | 247.1-2 | DEBIAN-CVE-2023-26604 |
| Debian 12 | systemd | Fixed | 247.1-2 | DEBIAN-CVE-2023-26604 |
| Red Hat Enterprise Linux 9 | rhel-net-naming-sysattrs | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-boot-unsigned | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-container | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-journal-remote | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-oomd | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-pam | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-resolved | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-udev | Not affected | ||
| Red Hat Enterprise Linux 9 | systemd-ukify | Not affected | ||
| Red Hat Enterprise Linux 8 | systemd | Fixed | 0:239-74.el8_8.2 | RHSA-2023:3837 |
| Red Hat Enterprise Linux 8 | systemd-container | Fixed | 0:239-74.el8_8.2 | RHSA-2023:3837 |
| Red Hat Enterprise Linux 8 | systemd-devel | Fixed | 0:239-74.el8_8.2 | RHSA-2023:3837 |
| Red Hat Enterprise Linux 8 | systemd-journal-remote | Fixed | 0:239-74.el8_8.2 | RHSA-2023:3837 |
| Red Hat Enterprise Linux 8 | systemd-libs | Fixed | 0:239-74.el8_8.2 | RHSA-2023:3837 |
| Red Hat Enterprise Linux 8 | systemd-pam | Fixed | 0:239-74.el8_8.2 | RHSA-2023:3837 |
| Red Hat Enterprise Linux 8 | systemd-tests | Fixed | 0:239-74.el8_8.2 | RHSA-2023:3837 |
| Red Hat Enterprise Linux 8 | systemd-udev | Fixed | 0:239-74.el8_8.2 | RHSA-2023:3837 |
| AlmaLinux 8 | systemd | Fixed | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux 8 | systemd-container | Fixed | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux 8 | systemd-devel | Fixed | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux 8 | systemd-journal-remote | Fixed | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux 8 | systemd-libs | Fixed | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux 8 | systemd-pam | Fixed | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux 8 | systemd-tests | Fixed | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux 8 | systemd-udev | Fixed | 239-74.el8_8.2 | ALSA-2023:3837 |
| Rocky Linux 8 | systemd | Fixed | 0:239-74.el8_8.2 | RLSA-2023:3837 |
References
- https://medium.com/%40zenmoviefornotification/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/
- https://lists.debian.org/debian-lts-announce/2023/03/msg00032.html
- https://security.netapp.com/advisory/ntap-20230505-0009/
- http://packetstormsecurity.com/files/174130/systemd-246-Local-Root-Privilege-Escalation.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.