Access control
Sudoedit bypass in Sudo <= 1.9.12p1 (CVE-2023-22809)
Sudo's sudoedit feature uses user-supplied environment variables (SUDO_EDITOR, VISUAL, EDITOR) to choose an editor, and these variables can contain extra arguments. By injecting an extra '--' argument, an attacker can make sudoedit treat additional files as editable, allowing them to edit any file with the privileges of the RunAs user, potentially escalating to root.
Sudo