CVE-2023-26604: High severity Systemd Project Systemd vulnerability

Published Mar 3, 2023
·
Updated

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.

Credit

Iyaad Luqman K

Affected Software

4 affected componentsFixes available
redhat/systemd<247
247
Systemd Project Systemd<247
Debian Debian Linux=10.0
Systemd Project Systemd<246.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/systemd to a version that resolves this vulnerability.

    Fixed in 247
  2. Upgrade

    Upgrade systemd to a version that resolves this vulnerability.

    Fixed in 247
  3. Configuration

    Ensure systemd sets LESSSECURE=1 so that the less program prevents launching other programs when terminal size is too small to show complete output.

    systemd (LESSSECURE environment handling) LESSSECURE = 1
  4. Compensating control

    For sudo configurations that run systemctl (e.g., plausible sudoers entries for commands like "systemctl status"), limit sudo privileges so untrusted users cannot execute systemctl under sudo in a way that would trigger the less/LESSSECURE issue.

Event History

Mar 3, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Mar 6, 2023
Data Sourced
via Red Hat·06:31 AM
DescriptionSeverityAffected Software
Aug 10, 2023
Exploit Published
12:00 AM
Known Exploited
12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this issue?

The vulnerability ID of this issue is CVE-2023-26604.

2

What is the severity of CVE-2023-26604?

The severity of CVE-2023-26604 is high with a CVSS score of 7.8.

3

Which software is affected by CVE-2023-26604?

The systemd software version up to exclusive 247 is affected by CVE-2023-26604.

4

What does CVE-2023-26604 exploit?

CVE-2023-26604 exploits a local privilege escalation vulnerability in systemd for certain Sudo configurations.

5

How can I mitigate CVE-2023-26604?

To mitigate CVE-2023-26604, ensure that you are using systemd version 247 or later and monitor and update your Sudo configurations to block the exploit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203