CVE & CISA-KEV Catalog

CVE-2023-22809

HIGHEPSS 99th pctl
7.8
CVSS v3
NVD

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.

How to fix

Remediation Available
sudoDebian
Fixed in:1.9.5p2-3+deb11u1CVE-2023-22809
Fixed in:1.9.12p2-1CVE-2023-22809
Fixed in:1.9.12p2-1CVE-2023-22809
Fixed in:1.9.12p2-1CVE-2023-22809
sudoRed Hat / RHEL
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
sudoRocky
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
sudo-debuginfoRed Hat / RHEL
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
sudo-debuginfoRocky
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
sudo-develRocky
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
sudo-develRed Hat / RHEL
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
sudoUbuntu
Fixed in:1.8.9p5-1ubuntu1.5+esm7USN-5811-3
Fixed in:1.8.16-0ubuntu1.10+esm1USN-5811-2
Fixed in:1.8.21p2-3ubuntu1.5USN-5811-1
Fixed in:1.8.31-1ubuntu1.4USN-5811-1
Fixed in:1.9.9-1ubuntu2.2USN-5811-1
Fixed in:1.9.11p3-1ubuntu1.1USN-5811-1
sudo-ldapUbuntu
Fixed in:1.8.9p5-1ubuntu1.5+esm7USN-5811-3
Fixed in:1.8.16-0ubuntu1.10+esm1USN-5811-2
Fixed in:1.8.21p2-3ubuntu1.5USN-5811-1
Fixed in:1.8.31-1ubuntu1.4USN-5811-1
Fixed in:1.9.9-1ubuntu2.2USN-5811-1
Fixed in:1.9.11p3-1ubuntu1.1USN-5811-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

55.37%probability of exploitation in 30 days
99thpercentile

Very high risk: more likely to be exploited than 99% of all known CVEs.

References

Related Vulnerabilities

Other CWE-269 (Improper Privilege Management) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2017-12635Critical9.8100%-Fix
CVE-2022-24637Critical9.899%-Fix
CVE-2017-5689Critical9.892%KEVFix
CVE-2020-3243Critical9.888%--
CVE-2024-21888High8.887%--
CVE-2022-0441Critical9.885%-Fix
Embed a live status badge for CVE-2023-22809
CVE-2023-22809 severity badge

Markdown

[![CVE-2023-22809](https://tridentstack.com/cve/badge/CVE-2023-22809.svg)](https://tridentstack.com/cve/CVE-2023-22809)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-22809"><img src="https://tridentstack.com/cve/badge/CVE-2023-22809.svg" alt="CVE-2023-22809"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-04-04.