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

High 8.4 Published Updated

Local attackers can escalate privileges via command re-execution due to improper privilege dropping in the theshit CLI utility.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-21882?

CVE-2026-21882 is a high-severity vulnerability in AsfhtgkDavid theshit, published on 2 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-273, CWE-269, CWE-250

Which versions are affected by CVE-2026-21882?

2 open source packages ship an affected version, including theshit.

PackageAffectedFixed in
theshit crates.ioAll versions0.2.0
theshit crates.ioAll versions0.2.0

How do I fix CVE-2026-21882?

Upgrade theshit to 0.2.0 or later.

Is CVE-2026-21882 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21882 exists.

Sources

Also known as GHSA-2j3p-gqw5-g59j.

Is CVE-2026-21882 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free