QID 355189

Date Published: 2023-05-29

QID 355189: Amazon Linux Security Advisory for sudo : ALAS2023-2023-106

Sudo 1.8.0 through 1.9.12, with the crypt() password backend, contains a plugins/sudoers/auth/passwd.c array-out-of-bounds error that can result in a heap-based buffer over-read.
This can be triggered by arbitrary local users with access to sudo by entering a password of seven characters or fewer.
The impact could vary depending on the system libraries, compiler, and processor architecture. (
( CVE-2022-43995) in sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (sudo_editor, visual, and editor), allowing a local attacker to append arbitrary entries to the list of files to process.
This can lead to privilege escalation.
Affected versions are 1.8.0 through 1.9.12.p1.
The problem exists because a user-specified editor may contain a "--" argument that defeats a protection mechanism, e.g., an editor='vim -- /path/to/extra/file' value. (
( CVE-2023-22809)



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: ALAS2023-2023-106 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 355189

    Software Advisories
    Advisory ID Software Component Link
    ALAS2023-2023-106 amazon linux 2023 URL Logo alas.aws.amazon.com/AL2023/ALAS-2023-106.html