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
sudoAmazon
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
sudo-debuginfoAmazon
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
sudo-debugsourceAmazon
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
sudo-develAmazon
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.8.23-10.amzn2.3.1
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
sudo-logsrvdAmazon
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
sudo-logsrvd-debuginfoAmazon
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
sudo-python-pluginAmazon
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
sudo-python-plugin-debuginfoAmazon
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
Fixed in:0:1.9.12-1.p2.amzn2023.0.2
sudoDebian
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-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

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-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
sudo-debuginfoRocky
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
Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262
sudo-debuginfoRed Hat / RHEL
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

sudo-develRocky
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-develRed Hat / RHEL
Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.19p2-12.el7_4.3RHSA-2023:3264

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-4.el7_7.4RHSA-2023:3276

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:1.8.23-3.el7_6.3RHSA-2023:3262

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

sudoUbuntu
Fixed in:1.8.9p5-1ubuntu1.5+esm7USN-5811-3

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:1.8.16-0ubuntu1.10+esm1USN-5811-2

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:1.8.21p2-3ubuntu1.5USN-5811-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1.8.31-1ubuntu1.4USN-5811-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1.9.9-1ubuntu2.2USN-5811-1
Fixed in:1.9.11p3-1ubuntu1.1USN-5811-1

This Ubuntu release reached end-of-life on 2023-07-20.

sudo-ldapUbuntu
Fixed in:1.8.9p5-1ubuntu1.5+esm7USN-5811-3

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:1.8.16-0ubuntu1.10+esm1USN-5811-2

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:1.8.21p2-3ubuntu1.5USN-5811-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1.8.31-1ubuntu1.4USN-5811-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1.9.9-1ubuntu2.2USN-5811-1
Fixed in:1.9.11p3-1ubuntu1.1USN-5811-1

This Ubuntu release reached end-of-life on 2023-07-20.

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 17 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 (Amazon), sudo-debuginfo (Amazon), sudo-debugsource (Amazon), sudo-devel (Amazon), and 13 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>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart 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 2026-06-17.