QID 354852

Date Published: 2023-04-06

QID 354852: Amazon Linux Security Advisory for systemd : ALAS2-2023-2004

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. (
( CVE-2023-26604)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as High - 7.8 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2-2023-2004 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 354852

    Software Advisories
    Advisory ID Software Component Link
    ALAS2-2023-2004 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALAS-2023-2004.html