VDB

CVE-2023-22809

CVE-2023-22809 PUBLISHED CVSS 7.8 HIGH

Reported by mitre · 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.

PackageEcosystemFixed in
sudoAmazon Linux1.8.23-10.amzn2.3.1
macosapple13.4

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2sudo0
n/an/a*
amazon:2023sudo-python-plugin0
amazon:2023sudo-devel0
amazon:2023sudo-logsrvd0
amazon:2sudo-devel0
amazon:2023sudo0
alpinesudo0

Timeline

  • Jan 18, 2023 CVE Published
  • Jan 18, 2023 Metasploit Module
  • Jan 19, 2023 EPSS Score (30 in total, the first dated here)
  • Mar 19, 2023 VulnCheck XDB Entry (13 in total, the first dated here)
  • Apr 3, 2023 PoC Published (4 in total, the first dated here)
  • Dec 6, 2024 VulnCheck KEV Exploitation
  • Apr 4, 2025 CVE Updated
  • Mar 10, 2026 Distribution Patch (61 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (64 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-22809
vulnetix vdb fixes 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/CVE-2023-22809/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›