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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
sudo 1.8.0 to 1.9.12p1 - Privilege Escalation
Metasploit modules
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 1.9.12p2-1 |
| sid | Fixed | 1.9.12p2-1 |
| forky | Fixed | 1.9.12p2-1 |
| bullseye | Fixed | 1.9.5p2-3+deb11u1 |
| bookworm | Fixed | 1.9.12p2-1 |
Red Hat Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | โ |
| 8 | Fixed | โ |
Rocky Linux Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | โ |
| 8 | Fixed | โ |
References
- https://access.redhat.com/errata/RHSA-2023:0282
- https://errata.rockylinux.org/RLSA-2023:0284
- https://www.suse.com/security/cve/CVE-2023-22809.html
- https://errata.rockylinux.org/RLSA-2023:0282
- https://security-tracker.debian.org/tracker/CVE-2023-22809
- https://access.redhat.com/errata/RHSA-2023:0284
- https://bugzilla.redhat.com/2161142
- https://errata.almalinux.org/8/ALSA-2023-0284.html
- https://errata.almalinux.org/9/ALSA-2023-0282.html
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.