CVE-2023-22809: Impact of Sudo Vulnerability CVE-2023-22809

CVE-2023-22809 affects 139 listed versions of Apple macOS in the Dawnsentry catalogue.

7.8CVSS high
Attack tool publicexploitation
55%EPSS (next 30 days)
18 January 2023published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apple macOS

139 of 250 listed versions are affected. Fixed in 13.4. The newest release, 27.2.1, is not affected.

13.3.3 13.3.1 13.3 13.2.1 13.2 13.1 13.0.1 13.0 13 12.12 12.11 12.10 12.9 12.7.6 12.7.5 12.7.4 12.7.3 12.7.2 12.7.1 12.7 12.6.9 12.6.8 12.6.7 12.6.6 12.6.5 12.6.4 12.6.3 12.6.2 12.6.1 12.6 12.5.1 12.5 12.4 12.3.1 12.3 12.2.1 12.2 12.1 12.0.1 12.0.0 12.0 11.7.11 11.7.10 11.7.9 11.7.8 11.7.7 11.7.6 11.7.5 11.7.4 11.7.3 11.7.2 11.7.1 11.7 11.6.8 11.6.7 11.6.6 11.6.5 11.6.4 11.6.3 11.6.2 and 79 more

What it is

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 (NVD)

Published by MITRE on 18 January 2023. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2023-22809 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.