QID 354795
Date Published: 2023-03-08
QID 354795: Amazon Linux Security Advisory for sudo : ALAS2-2023-1985
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)
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.
Solution
Please refer to Amazon advisory: ALAS2-2023-1985 for affected packages and patching details, or update with your package manager.
Vendor References
- ALAS2-2023-1985 -
alas.aws.amazon.com/AL2/ALAS-2023-1985.html
CVEs related to QID 354795
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| ALAS2-2023-1985 | amazon linux 2 |
|