CVE-2023-22809
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.
How to fix
- sudo_project sudo1.9.12 or later
- apple macos13.4 or later
- debian.org/security/2023/dsa-5321
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
- security.gentoo.org/glsa/202305-12
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sudo_project sudo | 1.8.0 ≤ v < 1.9.12, 1.9.12 | 1.9.12 |
| debian debian_linux | 10.0, 11.0 | — |
| fedoraproject fedora | 36, 37 | — |
| apple macos | v < 13.4 | 13.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.