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 products9
- Red Hat Enterprise Linux Server AUS (v. 7.6)
- Red Hat Enterprise Linux Server Optional AUS (v. 7.6)
- sudo-0:1.8.23-3.el7_6.3.src as a component of Red Hat Enterprise Linux Server AUS (v. 7.6)
- sudo-0:1.8.23-3.el7_6.3.x86_64 as a component of Red Hat Enterprise Linux Server AUS (v. 7.6)
- sudo-debuginfo-0:1.8.23-3.el7_6.3.i686 as a component of Red Hat Enterprise Linux Server Optional AUS (v. 7.6)
- sudo-debuginfo-0:1.8.23-3.el7_6.3.x86_64 as a component of Red Hat Enterprise Linux Server AUS (v. 7.6)
- sudo-debuginfo-0:1.8.23-3.el7_6.3.x86_64 as a component of Red Hat Enterprise Linux Server Optional AUS (v. 7.6)
- sudo-devel-0:1.8.23-3.el7_6.3.i686 as a component of Red Hat Enterprise Linux Server Optional AUS (v. 7.6)
- sudo-devel-0:1.8.23-3.el7_6.3.x86_64 as a component of Red Hat Enterprise Linux Server Optional AUS (v. 7.6)
✅ 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.