Red Hat Security Advisory: sudo security update
🔗 CVE IDs covered (1)
📋 Description
CVE-2023-22809 — sudo: arbitrary file write with privileges of the RunAs user
🎯 Affected products8
- Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
- sudo-0:1.8.25p1-8.el8_1.3.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
- sudo-0:1.8.25p1-8.el8_1.3.src as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
- sudo-0:1.8.25p1-8.el8_1.3.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
- sudo-debuginfo-0:1.8.25p1-8.el8_1.3.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
- sudo-debuginfo-0:1.8.25p1-8.el8_1.3.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
- sudo-debugsource-0:1.8.25p1-8.el8_1.3.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
- sudo-debugsource-0:1.8.25p1-8.el8_1.3.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: It is possible to prevent a user-specified editor from being used by sudoedit by adding the following line to the sudoers file. ~~~ Defaults!sudoedit env_delete+="SUDO_EDITOR VISUAL EDITOR" ~~~ To restrict the editor when editing specific files, a Cmnd_Alias can be used, for example: ~~~ Cmnd_Alias EDIT_MOTD = sudoedit /etc/motd Defaults!EDIT_MOTD env_delete+="SUDO_EDITOR VISUAL EDITOR" user ALL = EDIT_MOTD ~~~ But if possible please update the affected package as soon as possible.