DEBIAN-CVE-2023-22809
Record from OSV · Published January 18, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sudo | Debian:13 | 1.9.12p2-1 |
| sudo | Debian:14 | 1.9.12p2-1 |
| sudo | Debian:12 | 1.9.12p2-1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Debian:13 | sudo | 0 |
| Debian:14 | sudo | 0 |
| Debian:12 | sudo | 0 |
Timeline
- Jan 18, 2023 CVE Published
- Oct 26, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln DEBIAN-CVE-2023-22809
vulnetix vdb fixes DEBIAN-CVE-2023-22809
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/DEBIAN-CVE-2023-22809/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart