CVE-2026-21882

theshit's Improper Privilege Dropping Allows Local Privilege Escalation via Command Re-execution

Published Mar 2, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
First Time appeared Asfhtgkdavid
Asfhtgkdavid theshit
Vendors & Products Asfhtgkdavid
Asfhtgkdavid theshit
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-250

    Execution with Unnecessary Privileges

  • CWE-269

    Improper Privilege Management

  • CWE-273

    Improper Check for Dropped Privileges

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 2, 2026, 7:44 PM
Reserved
Jan 5, 2026, 5:24 PM
Status
Deferred
Published
Mar 2, 2026, 8:16 PM
Modified
Jun 17, 2026, 10:19 AM