CVE-2023-22809: apple macos Improper Privilege Management
Vulnerability summary
CVE-2023-22809 is a high (CVSS 7.8) Improper Privilege Management vulnerability in apple macos. EPSS estimates a 55.37% chance of exploitation in the next 30 days, higher than 99% of scored vulnerabilities. 5 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 18-01-2023PublishedVulnerability first disclosed.
- 04-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
55.37%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
0.00 pp
From 55.37% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
5 foundExploit Reference (synacktiv.com)
Maturity: unknown
Exploit Reference (sudo.ws)
Maturity: unknown
Exploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Suse29 products
- sudo&distro=SUSE Enterprise Storage 6< 1.8.27-150000.4.38.1
- sudo&distro=SUSE Enterprise Storage 7< 1.8.27-150000.4.38.1
- sudo&distro=SUSE Enterprise Storage 7.1< 1.9.5p2-150300.3.19.1
- sudo&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 1.8.27-150000.4.38.1
- sudo&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 1.8.27-150000.4.38.1
Redhat6 products
- sudo< 0:1.8.25p1-8.el8_1.3 | < 0:1.9.5p2-7.el9_0.2 | < 0:1.9.5p2-7.el9_1.1 | < 0:1.8.29-8.el8_6.1 | < 0:1.8.29-8.el8_7.1 | < 0:1.8.6p3-29.el6_10.7 | < 0:1.8.23-10.el7_9.3 | < 0:1.8.29-5.el8_2.2 | < 0:1.8.29-7.el8_4.2 | < 0:1.8.23-3.el7_6.3 | < 0:1.8.19p2-12.el7_4.3 | < 0:1.8.23-4.el7_7.4
- sudo-debuginfo< 0:1.8.25p1-8.el8_1.3 | < 0:1.9.5p2-7.el9_0.2 | < 0:1.9.5p2-7.el9_1.1 | < 0:1.8.29-8.el8_6.1 | < 0:1.8.29-8.el8_7.1 | < 0:1.8.6p3-29.el6_10.7 | < 0:1.8.23-10.el7_9.3 | < 0:1.8.29-5.el8_2.2 | < 0:1.8.29-7.el8_4.2 | < 0:1.8.23-3.el7_6.3 | < 0:1.8.19p2-12.el7_4.3 | < 0:1.8.23-4.el7_7.4
- sudo-debugsource< 0:1.8.25p1-8.el8_1.3 | < 0:1.9.5p2-7.el9_0.2 | < 0:1.9.5p2-7.el9_1.1 | < 0:1.8.29-8.el8_6.1 | < 0:1.8.29-8.el8_7.1 | < 0:1.8.29-5.el8_2.2 | < 0:1.8.29-7.el8_4.2
- sudo-devel< 0:1.8.6p3-29.el6_10.7 | < 0:1.8.23-10.el7_9.3 | < 0:1.8.23-3.el7_6.3 | < 0:1.8.19p2-12.el7_4.3 | < 0:1.8.23-4.el7_7.4
- sudo-python-plugin< 0:1.9.5p2-7.el9_0.2 | < 0:1.9.5p2-7.el9_1.1
Opensuse4 products
- sudo&distro=openSUSE Leap 15.4< 1.9.9-150400.4.12.1
- sudo&distro=openSUSE Leap Micro 5.2< 1.9.5p2-150300.3.19.1
- sudo&distro=openSUSE Leap Micro 5.3< 1.9.9-150400.4.12.1
- sudo&distro=openSUSE Tumbleweed< 1.9.12p2-1.1
Debian2 products
- sudo< 1.9.12p2-1 | < 1.9.5p2-3+deb11u1 | < 1.8.27-1+deb10u5
- debian_linuxEOL10.0 | 11.0
Alpine1 product
- sudo≥ 1.8.0, < 1.9.12_p2-r0
Apple1 product
- macos< 13.4
Fedoraproject1 product
- fedoraEOL36 | 37
Mageia1 product
- sudo< 1.9.5p2-2.2.mga8
Sudo_project1 product
- sudo≥ 1.8.0, < 1.9.12 | 1.9.12 | 1.9.12:p1
Ubuntu1 product
- sudo< 1.8.21p2-3ubuntu1.5 | < 1.8.31-1ubuntu1.4 | < 1.9.9-1ubuntu2.2 | < 1.8.16-0ubuntu1.10+esm1 | < 1.8.9p5-1ubuntu1.5+esm7
10 vendors · 47 products
References
62 links- www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdfExploitMitigationTechnical DescriptionThird Party Advisory
- security.netapp.com/advisory/ntap-20230127-0015/Third Party Advisory
- packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.htmlThird Party AdvisoryVDB Entry
Show all 62 references
- support.apple.com/kb/HT213758Third Party Advisory
- packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.htmlThird Party AdvisoryVDB Entry