CVE-2023-26604 Privilege escalation in n/a

High 7.8 Published Updated

Local attackers can escalate privileges to root via systemctl status if sudoers allow it and less is not secured.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-26604?

CVE-2023-26604 is a high-severity vulnerability in Debian Debian Linux, published on 3 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-269

Which versions are affected by CVE-2023-26604?

It affects 2 products.

Linux distribution packages (39)
systemd AlmaLinux:8All versions239-74.el8_8.2
systemd-container AlmaLinux:8All versions239-74.el8_8.2
systemd-devel AlmaLinux:8All versions239-74.el8_8.2
systemd-journal-remote AlmaLinux:8All versions239-74.el8_8.2
systemd-libs AlmaLinux:8All versions239-74.el8_8.2
systemd-pam AlmaLinux:8All versions239-74.el8_8.2
systemd-tests AlmaLinux:8All versions239-74.el8_8.2
systemd-udev AlmaLinux:8All versions239-74.el8_8.2
systemd Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-container Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-container-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-devel Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-journal-remote Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-journal-remote-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-libs Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-libs-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-pam Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-pam-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-tests Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-tests-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-udev Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
systemd-udev-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:239-74.el8_8.2
libgudev1 Red Hat:rhel_els:7All versions0:219-78.el7_9.11
libgudev1-devel Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd-debuginfo Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd-devel Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd-journal-gateway Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd-libs Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd-networkd Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd-python Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd-resolved Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd-sysv Red Hat:rhel_els:7All versions0:219-78.el7_9.11
systemd Rocky Linux:8All versions0:239-74.el8_8.2
systemd SUSE:Linux Enterprise Server 12 SP5All versions228-157.52.1
systemd SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions228-157.52.1
systemd SUSE:Linux Enterprise Software Development Kit 12 SP5All versions228-157.52.1

Products include Debian Debian Linux, Systemd Project Systemd.

How do I fix CVE-2023-26604?

Upgrade to a fixed version.

Is CVE-2023-26604 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26604 exists.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALSA-2023:3837, CLSA-2023-1679350239, CLSA-2023-1679350567, CLSA-2023-1688678794, CLSA-2023-1698690423, CLSA-2024-1711562715 and 11 more.

Is CVE-2023-26604 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free