---
title: "CVE-2023-22809"
canonical_url: "https://pkgseek.com/security/CVE-2023-22809"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2023-22809

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.

CVE-2023-22809 is rated HIGH (7.8), with 8 indexed affected package builds across 4 distributions.

- **Severity / Score**: HIGH (7.8)
- **Affected builds**: 8
- **Affected distros**: 4
- **Distros with fixed_in**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | sudo | 1.8.29-8.al8 | 1.8.29-8.al8.1 |
| Oracle Linux | 8 | sudo | 1.8.29-8.el8 | 1.8.29-8.el8_7.1 |
| Oracle Linux | 9 | sudo | 1.9.5p2-7.el9 | 1.9.5p2-7.el9_1.1 |
| Oracle Linux | 9 | sudo-python-plugin | 1.9.5p2-7.el9 | 1.9.5p2-7.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | sudo | 1.9.5p2-7.el9 | 1.9.5p2-7.el9_1.1 |
| Red Hat Enterprise Linux | 9.8 | sudo-python-plugin | 1.9.5p2-7.el9 | 1.9.5p2-7.el9_1.1 |
| Ubuntu | focal | sudo | 1.8.31-1ubuntu1 | 1.8.31-1ubuntu1.4 |
| Ubuntu | jammy | sudo | 1.9.9-1ubuntu2 | 1.9.9-1ubuntu2.2 |
