CVE-2023-42456
3.3 · LOWOverview
CVE-2023-42456 is a low-severity vulnerability affecting memorysafety sudo. It was published on September 21, 2023 and has a CVSS 3.1 base score of 3.3 (LOW).
This vulnerability has a CVSS 3.1 base score of 3.3, rated LOW. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.
Technical 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
Remediation
Check the references section for vendor advisories and patches from memorysafety. Update sudo to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
Affected Products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| memorysafety | sudo | >= 0, < 0.2.1 | Affected |
References
Frequently Asked Questions
What is CVE-2023-42456?
CVE-2023-42456 is a low-severity vulnerability affecting memorysafety sudo. It was published on September 21, 2023 and has a CVSS 3.1 base score of 3.3 (LOW).
How severe is CVE-2023-42456?
This vulnerability has a CVSS 3.1 base score of 3.3, rated LOW. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.
How do I fix or remediate CVE-2023-42456?
Check the references section for vendor advisories and patches from memorysafety. Update sudo to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
How can CyberStrike help with CVE-2023-42456?
CyberStrike's AI-powered security agents can automatically detect CVE-2023-42456 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.
How CyberStrike Helps
AI agents map your attack surface to find vulnerabilities like this one.
Automated penetration testing that runs continuously, not just quarterly.
AI-driven PR review catches vulnerable dependencies before they ship.
Browser-based exploitation validates findings with real proof-of-concept.
Related LOW CVEs from 2023
View all →A CWE-668: Exposure of Resource to Wrong Sphere vulnerability exists that could cause all remote dom
All versions of Landis+Gyr E850 (ZMQ200) are vulnerable to CWE-784: Reliance on Cookies Without Vali
Dell PowerEdge BIOS and Dell Precision BIOS contain an improper input validation vulnerability. A
A vulnerability was found in Deye/Revolt/Bosswerk Inverter MW3_15U_5406_1.47/MW3_15U_5406_1.471. It
Azure/setup-kubectl is a GitHub Action for installing Kubectl. This vulnerability only impacts versi
IBM Robotic Process Automation 21.0.1 through 21.0.7 and 23.0.0 through 23.0.1 could allow a user wi
This vulnerability allows local attackers to execute arbitrary code on affected installations of Sam
Kiwi TCMS is an open source test management system. In versions of Kiwi TCMS prior to 12.2, users we
Wasmtime is a standalone runtime for WebAssembly. Prior to versions 6.0.2, 7.0.1, and 8.0.1, Wasmtim
Insufficient input validation in the SMU may allow an attacker to corrupt SMU SRAM potentially leadi
Out-of-bounds write for some Intel(R) Trace Analyzer and Collector software before version 2021.8.0
Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call