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.
Published: 2026-03-02
Score: 8.4 High
EPSS: < 1% Very Low
KEV: No
Impact: Local Privilege Escalation
Action: Patch Immediately
AI Analysis

Impact

The theshit command‑line utility contains a flaw where privilege dropping is handled incorrectly. When a user runs the tool with elevated rights, the utility may re‑execute commands without properly relinquishing those privileges, enabling an attacker who can exercise local control over the system to gain higher privileges. The weakness is manifested as an improper elevation of privilege and violates the principle of least privilege, as captured by CWE‑250, CWE‑269 and CWE‑273.

Affected Systems

The vulnerability affects the theshit utility developed by AsfhtgkDavid. Any installation running a version earlier than 0.2.0 is susceptible; the problem was resolved in the 0.2.0 release.

Risk and Exploitability

The CVSS score of 8.4 indicates a high severity vulnerability, while the EPSS score of less than 1% suggests that public exploitation is unlikely but it remains a plausible threat vector for local attackers. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, but the potential for local privilege escalation makes it a high‑risk asset for systems that allow users to run the utility with elevated rights. The most straightforward exploitation path involves an attacker who can execute shell commands or scripts on the host and re‑invoke the utility under an elevated context, thereby acquiring additional privileges.

Generated by OpenCVE AI on April 16, 2026 at 14:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to theshit version 0.2.0 or later, which contains the privilege‑dropping fix.
  • If upgrading immediately is not feasible, limit the use of the tool to non‑privileged users and restrict the execution of commands that could trigger re‑execution.
  • Audit and remove any scripts or workflows that invoke theshit with elevated privileges, ensuring that privilege escalation cannot be achieved through indirect command execution.

Generated by OpenCVE AI on April 16, 2026 at 14:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2j3p-gqw5-g59j theshit's Improper Privilege Dropping Allows Local Privilege Escalation via Command Re-execution
History

Wed, 04 Mar 2026 11:00:00 +0000

Type Values Removed Values Added
First Time appeared Asfhtgkdavid
Asfhtgkdavid theshit
Vendors & Products Asfhtgkdavid
Asfhtgkdavid theshit

Mon, 02 Mar 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 02 Mar 2026 19:30:00 +0000

Type Values Removed Values Added
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.
Title theshit's Improper Privilege Dropping Allows Local Privilege Escalation via Command Re-execution
Weaknesses CWE-250
CWE-269
CWE-273
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Asfhtgkdavid Theshit
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-02T19:44:41.557Z

Reserved: 2026-01-05T17:24:36.928Z

Link: CVE-2026-21882

cve-icon Vulnrichment

Updated: 2026-03-02T19:44:30.750Z

cve-icon NVD

Status : Deferred

Published: 2026-03-02T20:16:26.130

Modified: 2026-04-15T15:42:24.190

Link: CVE-2026-21882

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-16T14:30:16Z

Weaknesses