QID 354717
Date Published: 2023-02-07
QID 354717: Amazon Linux Security Advisory for sudo : ALAS-2023-1682
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: ALAS-2023-1682 for affected packages and patching details, or update with your package manager.
Vendor References
- ALAS-2023-1682 -
alas.aws.amazon.com/ALAS-2023-1682.html
CVEs related to QID 354717
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| ALAS-2023-1682 | amazon linux |
|