Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2023-42456

3.3 · LOW
Published Sep 21, 2023 memorysafety CWE-22 EPSS 0.57% (45th pctl)

Overview

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

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.