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.
{
"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"
}{
"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:*:*:*:*:*:*"
]
}{
"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:*:*:*:*:*:*"
]
}