Koffei

CVE-2023-22809

🟠 Medium

sudo (sudoedit) (scanner: sudo) · 1.8.0 through 1.9.12p1

CVSS (Koffei note)
7.8
CVSS (v3.1, CVE List)
7.8
EPSS (2026-11-18)
55.367%
99.05th percentile

Exploitation

Probable — public PoC

Timeline

  1. 18/01/2023CVE record published (CVE List)

Risk

7.8 High (v3.1), EPSS 55.367% (CWE-269 : sudoedit mishandles extra arguments ('--') in SUDO_EDITOR/VISUAL/EDITOR, letting a local user edit arbitrary files and escalate privileges.)

Fix

Yes — 1.9.12p2 (advisory)

Official 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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H