Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-42456

published low CVSS 3.1 · 3.3

sudo-rs Session File Relative Path Traversal vulnerability

Published
21 Sep 2023, 15:20:56 UTC
Updated
10 Jun 2026, 13:43:28 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
memorysafety — sudo-rs< 0.2.1 Affected Not stated GitHub_M
SUSE / openSUSE openSUSE-Tumbleweed sudoaarch64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudoppc64le Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudos390x Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudox86_64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-develaarch64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-develppc64le Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-devels390x Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
Show 21 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed sudo-develx86_64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-plugin-pythonaarch64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-plugin-pythonppc64le Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-plugin-pythons390x Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-plugin-pythonx86_64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-policy-sudo-auth-selfaarch64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-policy-sudo-auth-selfppc64le Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-policy-sudo-auth-selfs390x Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-policy-sudo-auth-selfx86_64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-policy-wheel-auth-selfaarch64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-policy-wheel-auth-selfppc64le Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-policy-wheel-auth-selfs390x Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-policy-wheel-auth-selfx86_64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-testaarch64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-testppc64le Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-tests390x Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed sudo-testx86_64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed system-group-sudoaarch64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed system-group-sudoppc64le Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed system-group-sudos390x Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1
SUSE / openSUSE openSUSE-Tumbleweed system-group-sudox86_64 Advisory build 1.9.15p2-1.1 OPENSUSE-SU-2024:13490-1

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
3.3 / 10
Severity
low
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
memorysafety sudo-rs < 0.2.1 (affected) GitHub_M · cna

Weaknesses

2
  • CWE-23 CWE-23: Relative Path Traversal (GitHub_M · cna)
  • CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (GitHub_M · cna)

References

5

Provider assertions

3

GitHub_M · cna

sudo-rs Session File Relative Path Traversal vulnerability

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
61be94cf9f5d2466b055a35994b3d14369e814deff31d52263c0e53d34beec8f
Ingested
23 Sep 2026, 08:11:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected