cvedb.io
CVE-2023-22809
HIGH · CVSS 7.8
EPSS exploitation probability: 0%
Published 2023-01-18T17:15:10.353 · Last modified 2026-06-17T05:36:13.303

Summary

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.

Affected products

sudo_project — sudo

Does this affect you?

Add your gear to cvedb and we'll alert you only when sudo_project ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.