Upstream information

CVE-2023-42456 at MITRE

Description

Sudo-rs, a memory safe implementation of sudo and su, allows users to not have to enter authentication at every sudo attempt, but instead only requiring authentication every once in a while in every terminal or process group. Only once a configurable timeout has passed will the user have to re-authenticate themselves. Supporting this functionality is a set of session files (timestamps) for each user, stored in `/var/run/sudo-rs/ts`. These files are named according to the username from which the sudo attempt is made (the origin user).

An issue was discovered in versions prior to 0.2.1 where usernames containing the `.` and `/` characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username `../../../../bin/cp`. When logged in as a user with that name, that user could run `sudo -K` to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of `/bin/cp`. The code then clears that file, resulting in the `cp` binary effectively being removed from the system.

An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames.

The issue is patched in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values.

The `sudo -K` and `sudo -k` commands can run, even if a user has no sudo access. As a workaround, make sure that one's system does not contain any users with a specially crafted username. While this is the case and while untrusted users do not have the ability to create arbitrary users on the system, one should not be able to exploit this issue.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having moderate severity.

CVSS v3 Scores
CVSS detail CNA (GitHub) National Vulnerability Database SUSE
Base Score 3.3 8.1 3.1
Vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:L CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:L
Attack Vector Local Network Local
Attack Complexity High Low Low
Privileges Required Low Low High
User Interaction Required None Required
Scope Unchanged Unchanged Unchanged
Confidentiality Impact None None None
Integrity Impact Low High Low
Availability Impact Low High Low
CVSSv3 Version 3.1 3.1 3.1
SUSE Bugzilla entry: 1230342 [NEW]

No SUSE Security Announcements cross referenced.

List of released packages

Product(s) Fixed package version(s) References
SUSE Linux Enterprise Desktop 15 SP6
SUSE Linux Enterprise High Performance Computing 15 SP6
SUSE Linux Enterprise Module for Basesystem 15 SP6
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server for SAP Applications 15 SP6
  • sudo >= 1.9.15p5-150600.1.2
  • sudo-devel >= 1.9.15p5-150600.1.2
  • sudo-plugin-python >= 1.9.15p5-150600.1.2
  • sudo-policy-sudo-auth-self >= 1.9.15p5-150600.1.2
  • sudo-policy-wheel-auth-self >= 1.9.15p5-150600.1.2
  • system-group-sudo >= 1.9.15p5-150600.1.2
Patchnames:
SUSE Linux Enterprise Module for Basesystem 15 SP6 GA sudo-1.9.15p5-150600.1.2
SUSE Linux Enterprise Desktop 15 SP7
SUSE Linux Enterprise High Performance Computing 15 SP7
SUSE Linux Enterprise Module for Basesystem 15 SP7
SUSE Linux Enterprise Server 15 SP7
SUSE Linux Enterprise Server for SAP Applications 15 SP7
  • sudo >= 1.9.15p5-150600.3.6.2
  • sudo-devel >= 1.9.15p5-150600.3.6.2
  • sudo-plugin-python >= 1.9.15p5-150600.3.6.2
  • sudo-policy-sudo-auth-self >= 1.9.15p5-150600.3.6.2
  • sudo-policy-wheel-auth-self >= 1.9.15p5-150600.3.6.2
  • system-group-sudo >= 1.9.15p5-150600.3.6.2
Patchnames:
SUSE Linux Enterprise Module for Basesystem 15 SP7 GA sudo-1.9.15p5-150600.3.6.2
SUSE Linux Enterprise Server 16.0
  • sudo >= 1.9.17p1-160000.2.2
  • sudo-devel >= 1.9.17p1-160000.2.2
  • sudo-plugin-python >= 1.9.17p1-160000.2.2
  • sudo-policy-sudo-auth-self >= 1.9.17p1-160000.2.2
  • sudo-policy-wheel-auth-self >= 1.9.17p1-160000.2.2
  • system-group-sudo >= 1.9.17p1-160000.2.2
Patchnames:
SUSE Linux Enterprise Server 16.0 GA sudo-1.9.17p1-160000.2.2
SUSE Linux Micro 6.0
  • sudo >= 1.9.15p5-1.3
Patchnames:
SUSE Linux Micro 6.0 GA sudo-1.9.15p5-1.3
SUSE Linux Micro 6.1
  • sudo >= 1.9.15p5-slfo.1.1_1.2
Patchnames:
SUSE Linux Micro 6.1 GA sudo-1.9.15p5-slfo.1.1_1.2
openSUSE Tumbleweed
  • sudo >= 1.9.15p2-1.1
  • sudo-devel >= 1.9.15p2-1.1
  • sudo-plugin-python >= 1.9.15p2-1.1
  • sudo-policy-sudo-auth-self >= 1.9.15p2-1.1
  • sudo-policy-wheel-auth-self >= 1.9.15p2-1.1
  • sudo-test >= 1.9.15p2-1.1
  • system-group-sudo >= 1.9.15p2-1.1
Patchnames:
openSUSE-Tumbleweed-2024-13490


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SLES15-SP5-CHOST-BYOS-SAP-CCloud sudo Not affected
SLES15-SP6-CHOST-BYOS sudo Already fixed
SLES15-SP6-CHOST-BYOS-Aliyun sudo Already fixed
SLES15-SP6-CHOST-BYOS-Azure sudo Already fixed
SLES15-SP6-CHOST-BYOS-EC2 sudo Already fixed
SLES15-SP6-CHOST-BYOS-GCE sudo Already fixed
SLES15-SP6-CHOST-BYOS-GDC sudo Already fixed
SLES15-SP6-CHOST-BYOS-SAP-CCloud sudo Already fixed
SLES15-SP7-CHOST-BYOS-Aliyun sudo Already fixed
SLES15-SP7-CHOST-BYOS-Azure sudo Already fixed
SLES15-SP7-CHOST-BYOS-EC2 sudo Already fixed
SLES15-SP7-CHOST-BYOS-GCE sudo Already fixed
SLES15-SP7-CHOST-BYOS-GDC sudo Already fixed
SLES15-SP7-CHOST-BYOS-SAP-CCloud sudo Already fixed
SUSE Linux Enterprise Desktop 15 SP7 sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP7 sudo Not affected
SUSE Linux Enterprise Micro 5.3 sudo Not affected
SUSE Linux Enterprise Micro 5.4 sudo Not affected
SUSE Linux Enterprise Micro 5.5 sudo Not affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 sudo Not affected
SUSE Linux Enterprise Server 15 SP7 sudo Not affected
SUSE Linux Enterprise Server 16.0 sudo Not affected
SUSE Linux Enterprise Server 16.1 sudo Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 sudo Not affected
SUSE Linux Enterprise Server for SAP applications 16.0 sudo Not affected
SUSE Linux Enterprise Server for SAP applications 16.1 sudo Affected
SUSE Linux Micro 6.0 sudo Released
SUSE Linux Micro 6.1 sudo Released
SUSE Linux Micro 6.2 sudo Not affected
openSUSE Leap 16.0 sudo Not affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SLES15-SP3-CHOST-BYOS-Aliyun sudo Not affected
SLES15-SP3-CHOST-BYOS-Azure sudo Not affected
SLES15-SP3-CHOST-BYOS-EC2 sudo Not affected
SLES15-SP3-CHOST-BYOS-GCE sudo Not affected
SLES15-SP3-CHOST-BYOS-SAP-CCloud sudo Not affected
SLES15-SP4-CHOST-BYOS sudo Not affected
SLES15-SP4-CHOST-BYOS-Aliyun sudo Not affected
SLES15-SP4-CHOST-BYOS-Azure sudo Not affected
SLES15-SP4-CHOST-BYOS-EC2 sudo Not affected
SLES15-SP4-CHOST-BYOS-GCE sudo Not affected
SLES15-SP4-CHOST-BYOS-SAP-CCloud sudo Not affected
SLES15-SP5-CHOST-BYOS-Aliyun sudo Not affected
SLES15-SP5-CHOST-BYOS-Azure sudo Not affected
SLES15-SP5-CHOST-BYOS-EC2 sudo Not affected
SLES15-SP5-CHOST-BYOS-GCE sudo Not affected
SLES15-SP5-CHOST-BYOS-GDC sudo Not affected
SUSE Linux Enterprise High Performance Computing 12 SP5 sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4 sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5 sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS sudo Not affected
SUSE Linux Enterprise Module for Basesystem 15 SP4 sudo Not affected
SUSE Linux Enterprise Module for Basesystem 15 SP5 sudo Not affected
SUSE Linux Enterprise Module for Basesystem 15 SP6 sudo Already fixed
SUSE Linux Enterprise Server 12 SP5 sudo Not affected
SUSE Linux Enterprise Server 12 SP5-LTSS sudo Not affected
SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security sudo Not affected
SUSE Linux Enterprise Server 15 SP4 sudo Not affected
SUSE Linux Enterprise Server 15 SP4-LTSS sudo Not affected
SUSE Linux Enterprise Server 15 SP5 sudo Not affected
SUSE Linux Enterprise Server 15 SP5-LTSS sudo Not affected
SUSE Linux Enterprise Server 15 SP6 sudo Already fixed
SUSE Linux Enterprise Server 15 SP6-LTSS sudo Already fixed
SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 12 SP5 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 sudo Already fixed
SUSE Manager Proxy 4.3 sudo Not affected
SUSE Manager Proxy LTS 4.3 sudo Not affected
SUSE Manager Retail Branch Server 4.3 sudo Not affected
SUSE Manager Retail Branch Server LTS 4.3 sudo Not affected
SUSE Manager Server 4.3 sudo Not affected
SUSE Manager Server LTS 4.3 sudo Not affected
Products past their end of life and not receiving proactive updates anymore.
HPE Helion OpenStack 8 sudo Not affected
SUSE CaaS Platform 3.0 sudo Not affected
SUSE CaaS Platform 4.0 sudo Not affected
SUSE Enterprise Storage 6 sudo Not affected
SUSE Enterprise Storage 7 sudo Not affected
SUSE Enterprise Storage 7.1 sudo Not affected
SUSE Linux Enterprise Desktop 11 SP3 sudo Not affected
SUSE Linux Enterprise Desktop 11 SP4 sudo Not affected
SUSE Linux Enterprise Desktop 12 SP2 sudo Not affected
SUSE Linux Enterprise Desktop 12 SP3 sudo Not affected
SUSE Linux Enterprise Desktop 12 SP4 sudo Not affected
SUSE Linux Enterprise Desktop 15 sudo Not affected
SUSE Linux Enterprise Desktop 15 SP1 sudo Not affected
SUSE Linux Enterprise Desktop 15 SP2 sudo Not affected
SUSE Linux Enterprise Desktop 15 SP3 sudo Not affected
SUSE Linux Enterprise Desktop 15 SP4 sudo Not affected
SUSE Linux Enterprise Desktop 15 SP5 sudo Not affected
SUSE Linux Enterprise Desktop 15 SP6 sudo Already fixed
SUSE Linux Enterprise High Performance Computing 15 sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1 sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2 sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3 sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15 SP6 sudo Already fixed
SUSE Linux Enterprise High Performance Computing 15-ESPOS sudo Not affected
SUSE Linux Enterprise High Performance Computing 15-LTSS sudo Not affected
SUSE Linux Enterprise Micro 5.0 sudo Not affected
SUSE Linux Enterprise Micro 5.1 sudo Not affected
SUSE Linux Enterprise Micro 5.2 sudo Not affected
SUSE Linux Enterprise Module for Basesystem 15 sudo Not affected
SUSE Linux Enterprise Module for Basesystem 15 SP1 sudo Not affected
SUSE Linux Enterprise Module for Basesystem 15 SP2 sudo Not affected
SUSE Linux Enterprise Module for Basesystem 15 SP3 sudo Not affected
SUSE Linux Enterprise Point of Sale 11 SP3 sudo Not affected
SUSE Linux Enterprise Point of Sale 12 SP2-CLIENT sudo Not affected
SUSE Linux Enterprise Real Time 15 SP2 sudo Not affected
SUSE Linux Enterprise Real Time 15 SP3 sudo Not affected
SUSE Linux Enterprise Real Time 15 SP4 sudo Not affected
SUSE Linux Enterprise Server 11 SP3 sudo Not affected
SUSE Linux Enterprise Server 11 SP3-LTSS sudo Not affected
SUSE Linux Enterprise Server 11 SP4 sudo Not affected
SUSE Linux Enterprise Server 11 SP4 LTSS sudo Not affected
SUSE Linux Enterprise Server 11 SP4-LTSS sudo Not affected
SUSE Linux Enterprise Server 12 SP2 sudo Not affected
SUSE Linux Enterprise Server 12 SP2-BCL sudo Not affected
SUSE Linux Enterprise Server 12 SP2-ESPOS sudo Not affected
SUSE Linux Enterprise Server 12 SP2-LTSS sudo Not affected
SUSE Linux Enterprise Server 12 SP3 sudo Not affected
SUSE Linux Enterprise Server 12 SP3-BCL sudo Not affected
SUSE Linux Enterprise Server 12 SP3-ESPOS sudo Not affected
SUSE Linux Enterprise Server 12 SP3-LTSS sudo Not affected
SUSE Linux Enterprise Server 12 SP4 sudo Not affected
SUSE Linux Enterprise Server 12 SP4-ESPOS sudo Not affected
SUSE Linux Enterprise Server 12 SP4-LTSS sudo Not affected
SUSE Linux Enterprise Server 15 sudo Not affected
SUSE Linux Enterprise Server 15 SP1 sudo Not affected
SUSE Linux Enterprise Server 15 SP1-BCL sudo Not affected
SUSE Linux Enterprise Server 15 SP1-LTSS sudo Not affected
SUSE Linux Enterprise Server 15 SP2 sudo Not affected
SUSE Linux Enterprise Server 15 SP2-BCL sudo Not affected
SUSE Linux Enterprise Server 15 SP2-LTSS sudo Not affected
SUSE Linux Enterprise Server 15 SP3 sudo Not affected
SUSE Linux Enterprise Server 15 SP3-BCL sudo Not affected
SUSE Linux Enterprise Server 15 SP3-LTSS sudo Not affected
SUSE Linux Enterprise Server 15-LTSS sudo Not affected
SUSE Linux Enterprise Server for Raspberry Pi 12 SP2 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 12 SP2 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 12 SP3 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 12 SP4 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 15 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 sudo Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 sudo Not affected
SUSE Linux Enterprise Software Development Kit 12 SP2 sudo Not affected
SUSE Linux Enterprise Software Development Kit 12 SP3 sudo Not affected
SUSE Linux Enterprise Software Development Kit 12 SP4 sudo Not affected
SUSE Linux Enterprise Software Development Kit 12 SP5 sudo Not affected
SUSE Manager Proxy 4.0 sudo Not affected
SUSE Manager Proxy 4.1 sudo Not affected
SUSE Manager Proxy 4.2 sudo Not affected
SUSE Manager Retail Branch Server 4.0 sudo Not affected
SUSE Manager Retail Branch Server 4.1 sudo Not affected
SUSE Manager Retail Branch Server 4.2 sudo Not affected
SUSE Manager Server 4.0 sudo Not affected
SUSE Manager Server 4.1 sudo Not affected
SUSE Manager Server 4.2 sudo Not affected
SUSE OpenStack Cloud 7 sudo Not affected
SUSE OpenStack Cloud 8 sudo Not affected
SUSE OpenStack Cloud 9 sudo Not affected
SUSE OpenStack Cloud Crowbar 8 sudo Not affected
SUSE OpenStack Cloud Crowbar 9 sudo Not affected
openSUSE Leap 15.3 sudo Not affected
openSUSE Leap 15.4 sudo Not affected
openSUSE Leap 15.5 sudo Not affected
openSUSE Leap 15.6 sudo Already fixed
openSUSE Leap Micro 5.2 sudo Not affected
openSUSE Leap Micro 5.3 sudo Not affected
openSUSE Leap Micro 5.4 sudo Not affected
openSUSE Leap Micro 5.5 sudo Not affected
Products at an unknown state of their lifecycle.
SLES-CHOST-BYOS-Aliyun sudo Not affected
SLES-CHOST-BYOS-Azure sudo Not affected
SLES-CHOST-BYOS-EC2 sudo Not affected
SLES-CHOST-BYOS-GCE sudo Not affected
SLES-CHOST-BYOS-GDC sudo Not affected
SLES-CHOST-BYOS-SAP-CCloud sudo Not affected
Container Status
bci/spack
bci/spack:0.23
suse/manager/5.0/x86_64/server
suse/multi-linux-manager/5.1/x86_64/proxy-salt-broker
suse/multi-linux-manager/5.1/x86_64/server
suse/multi-linux-manager/5.2/x86_64/proxy-salt-broker
suse/multi-linux-manager/5.2/x86_64/server
sudoAlready fixed
kiwi-templates-Minimal
kiwi-templates-Minimal-Cloud-sap
kiwi-templates-Minimal-MS-HyperV-sap
kiwi-templates-Minimal-VMware-sap
kiwi-templates-Minimal-kvm-and-xen-sap
ses/6/cephcsi/cephcsi
ses/6/rook/ceph
ses/7.1/cephcsi/cephcsi
ses/7.1/rook/ceph
ses/7/ceph/ceph
ses/7/cephcsi/cephcsi
ses/7/rook/ceph
suse/sle-micro-rancher/5.2
suse/sle-micro-rancher/5.3
suse/sle-micro-rancher/5.4
suse/sle-micro/5.0/toolbox
suse/sle-micro/5.1/toolbox
suse/sle-micro/5.2/toolbox
suse/sle-micro/5.3/toolbox
suse/sle-micro/5.4/toolbox
suse/sle-micro/5.5
suse/sle-micro/5.5/toolbox
suse/sles/16.0/toolbox
sudoNot affected


SUSE Timeline for this CVE

CVE page created: Thu Sep 21 20:00:17 2023
CVE page last modified: Wed Jul 1 17:55:14 2026