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
sudoRocky
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
sudoRed Hat / RHEL
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-debuginfoRocky
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-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-4.el7_7.4RHSA-2023:3276
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
sudo-debuginfoRed Hat / RHEL
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.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.19p2-12.el7_4.3RHSA-2023:3264
sudo-develRocky
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-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.23-4.el7_7.4RHSA-2023:3276
sudo-develRed Hat / RHEL
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
Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264
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

Common questions

How do I fix CVE-2023-22809?

Published advisories record a fix for 9 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2023-22809 being actively exploited?

Not that we know of. CVE-2023-22809 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 55.4% is the estimated probability that it will be exploited in the next 30 days. That is higher than 99% of all scored CVEs.

How severe is CVE-2023-22809?

CVE-2023-22809 has a CVSS v3 base score of 7.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2023-22809 affect?

Published advisories record a fix for sudo (Debian), sudo (Rocky), sudo (Red Hat / RHEL), sudo-debuginfo (Rocky), and 5 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

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.