Vulnerability CVE-2023-22809: Information

Description

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.

Severity: HIGH (7.8) Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Published: Jan. 18, 2023
Modified: Nov. 17, 2023
Error type identifier: CWE-269

Fixed packages

References to Advisories, Solutions, and Tools

    1. Configuration 1

      cpe:2.3:a:sudo_project:sudo:1.9.12:-:*:*:*:*:*:*

      cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*
      Start including
      1.8.0
      End excliding
      1.9.12

      cpe:2.3:a:sudo_project:sudo:1.9.12:p1:*:*:*:*:*:*

      Configuration 2

      cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

      cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

      Configuration 3

      cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*

      cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*

      Configuration 4

      cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
      End excliding
      13.4