Vulnerability · Published Mar 3, 2023 · Assigned by mitre
CVE-2023-26604
High 7.8
In plain English
A high-severity privilege mismanagement in the systemd package (AlmaLinux). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 64% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | systemd | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux:8 | systemd-container | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux:8 | systemd-devel | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux:8 | systemd-journal-remote | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux:8 | systemd-libs | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux:8 | systemd-pam | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux:8 | systemd-tests | 239-74.el8_8.2 | ALSA-2023:3837 |
| AlmaLinux:8 | systemd-udev | 239-74.el8_8.2 | ALSA-2023:3837 |
| Debian:12 | systemd | 247.1-2 | DEBIAN-CVE-2023-26604 |
| Debian:13 | systemd | 247.1-2 | DEBIAN-CVE-2023-26604 |
| Debian:14 | systemd | 247.1-2 | DEBIAN-CVE-2023-26604 |
| Rocky Linux:8 | systemd | 0:239-74.el8_8.2 | RLSA-2023:3837 |
Affected products (as reported)
Weakness: CWE-269 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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/
- [debian-lts-announce] 20230331 [SECURITY] [DLA 3377-1] systemd security update mailing-list
- https://security.netapp.com/advisory/ntap-20230505-0009/
- http://packetstormsecurity.com/files/174130/systemd-246-Local-Root-Privilege-Escalation.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html