CVE-2023-22809

Source
https://cve.org/CVERecord?id=CVE-2023-22809
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-22809.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-22809
Downstream
Related
Published
2023-01-18T00:00:00Z
Modified
2026-07-01T11:53:35.954928770Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "fixed": "1.9.12p2"
                },
                {
                    "introduced": "1.8.0"
                },
                {
                    "fixed": "1.9.12.p1"
                }
            ]
        }
    ],
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22809.json"
}
References

Affected packages

Git / github.com/millert/sudo

Affected ranges

Type
GIT
Repo
https://github.com/millert/sudo
Events
Introduced
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Database specific
{
    "source": [
        "CPE_RANGE",
        "CPE_STRING"
    ],
    "extracted_events": [
        {
            "introduced": "1.8.0"
        },
        {
            "fixed": "1.9.12"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.9.12-NA"
        },
        {
            "last_affected": "1.9.12-p1"
        }
    ],
    "cpe": [
        "cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:sudo_project:sudo:1.9.12:-:*:*:*:*:*:*",
        "cpe:2.3:a:sudo_project:sudo:1.9.12:p1:*:*:*:*:*:*"
    ]
}

Affected versions

Other
SUDO_1_8_0
SUDO_1_9_0
SUDO_1_9_1
SUDO_1_9_10
SUDO_1_9_11
SUDO_1_9_11p1
SUDO_1_9_11p2
SUDO_1_9_11p3
SUDO_1_9_2
SUDO_1_9_3
SUDO_1_9_3p1
SUDO_1_9_4
SUDO_1_9_4p1
SUDO_1_9_4p2
SUDO_1_9_5
SUDO_1_9_5p1
SUDO_1_9_5p2
SUDO_1_9_6
SUDO_1_9_6p1
SUDO_1_9_7
SUDO_1_9_7p1
SUDO_1_9_7p2
SUDO_1_9_8
SUDO_1_9_8p1
SUDO_1_9_8p2
SUDO_1_9_9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-22809.json"

Git / github.com/sudo-project/sudo

Affected ranges

Type
GIT
Repo
https://github.com/sudo-project/sudo
Events
Introduced
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Database specific
{
    "source": [
        "CPE_RANGE",
        "CPE_STRING"
    ],
    "extracted_events": [
        {
            "introduced": "1.8.0"
        },
        {
            "fixed": "1.9.12"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.9.12-NA"
        },
        {
            "last_affected": "1.9.12-p1"
        }
    ],
    "cpe": [
        "cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:sudo_project:sudo:1.9.12:-:*:*:*:*:*:*",
        "cpe:2.3:a:sudo_project:sudo:1.9.12:p1:*:*:*:*:*:*"
    ]
}

Affected versions

Other
SUDO_1_8_0
SUDO_1_9_0
SUDO_1_9_1
SUDO_1_9_10
SUDO_1_9_11
SUDO_1_9_11p1
SUDO_1_9_11p2
SUDO_1_9_11p3
SUDO_1_9_2
SUDO_1_9_3
SUDO_1_9_3p1
SUDO_1_9_4
SUDO_1_9_4p1
SUDO_1_9_4p2
SUDO_1_9_5
SUDO_1_9_5p1
SUDO_1_9_5p2
SUDO_1_9_6
SUDO_1_9_6p1
SUDO_1_9_7
SUDO_1_9_7p1
SUDO_1_9_7p2
SUDO_1_9_8
SUDO_1_9_8p1
SUDO_1_9_8p2
SUDO_1_9_9
v1.*
v1.8.0
v1.9.0
v1.9.1
v1.9.10
v1.9.11
v1.9.11p1
v1.9.11p2
v1.9.11p3
v1.9.2
v1.9.3
v1.9.3p1
v1.9.4
v1.9.4p1
v1.9.4p2
v1.9.5
v1.9.5p1
v1.9.5p2
v1.9.6
v1.9.6p1
v1.9.7
v1.9.7p1
v1.9.7p2
v1.9.8
v1.9.8p1
v1.9.8p2
v1.9.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-22809.json"