In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided…
No fixed version listed yet.Check the vendor advisory. References ↓
In Sudo versions 1.8.0 through 1.9.12p1, the sudoedit (-e) feature mishandles extra arguments supplied through the SUDO_EDITOR, VISUAL, and EDITOR environment variables, because a user-specified editor containing a "--" argument can defeat the protection that restricts which files are processed. A local attacker with low privileges and no user interaction can exploit this by appending arbitrary entries to the list of files to be edited, which can lead to privilege escalation.
Official description · CVE.org
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.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
First seen exploited 23 months after disclosure. Public exploit code (Metasploit) was available the same day.
- First seen exploitedVulnCheck KEV evidence+23 mo
What security researchers reported
Not named in any threat report yetAlso mentioned in 2 community threat pulses (AlienVault OTX)
Weaker evidencePulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.