CVE-2026-21882 Details
Description
theshit is a command-line utility that automatically detects and fixes common mistakes in shell commands. Prior to version 0.2.0, improper privilege dropping allows local privilege escalation via command re-execution. This issue has been patched in version 0.2.0.
A local privilege escalation vulnerability has been identified in the theshit command-line utility, prior to version 0.2.0. The issue arises from improper handling of privileges when the application automatically retries previously failed commands. When executed with elevated rights, theshit fails to revert to the original user context before re-executing commands, allowing unprivileged users to gain root access by manipulating the command execution process. This vulnerability is particularly concerning in environments where theshit is allowed to run with sudo, especially with NOPASSWD configurations.
Users are advised to upgrade to version 0.2.0, where this vulnerability has been fixed. If an upgrade is not possible, theshit should be run as an unprivileged user, and its use in privileged contexts should be restricted.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 2, 2026CISA-ADP
Assessed Mar 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/AsfhtgkDavid/theshit/commit/5293957b119e55212dce2c6dcbaf1d7eb794602a | [email protected] | Source CodeVendor |
| https://github.com/AsfhtgkDavid/theshit/security/advisories/GHSA-2j3p-gqw5-g59j | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-250 | Execution with Unnecessary Privileges | [email protected] |
| CWE-269 | Improper Privilege Management | [email protected] |
| CWE-273 | Improper Check for Dropped Privileges | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| AsfhtgkDavid theshit | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 2, 2026 | New CVE Received | [email protected] |
Volerion