{"id":"CVE-2026-21882","state":"PUBLISHED","title":"theshit's Improper Privilege Dropping Allows Local Privilege Escalation via Command Re-execution","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.","publishedAt":"2026-03-02T19:17:22.220Z","updatedAt":"2026-03-02T19:44:41.557Z","severity":{"score":8.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["AsfhtgkDavid theshit"],"affected":[{"vendor":"AsfhtgkDavid","product":"theshit","versions":[{"version":"< 0.2.0","status":"affected"}]}],"references":["https://github.com/AsfhtgkDavid/theshit/security/advisories/GHSA-2j3p-gqw5-g59j","https://github.com/AsfhtgkDavid/theshit/commit/5293957b119e55212dce2c6dcbaf1d7eb794602a"],"weaknesses":["CWE-273","CWE-269","CWE-250"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/21xxx/CVE-2026-21882.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-21882","state":"PUBLISHED","datePublished":"2026-03-02T19:17:22.220Z","dateUpdated":"2026-03-02T19:44:41.557Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-05T17:24:36.928Z"},"containers":{"cna":{"title":"theshit's Improper Privilege Dropping Allows Local Privilege Escalation via Command Re-execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"AsfhtgkDavid","product":"theshit","versions":[{"version":"< 0.2.0","status":"affected"}]}],"references":[{"url":"https://github.com/AsfhtgkDavid/theshit/security/advisories/GHSA-2j3p-gqw5-g59j","name":"https://github.com/AsfhtgkDavid/theshit/security/advisories/GHSA-2j3p-gqw5-g59j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/AsfhtgkDavid/theshit/commit/5293957b119e55212dce2c6dcbaf1d7eb794602a","name":"https://github.com/AsfhtgkDavid/theshit/commit/5293957b119e55212dce2c6dcbaf1d7eb794602a","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-273","lang":"en","description":"CWE-273: Improper Check for Dropped Privileges","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-269","lang":"en","description":"CWE-269: Improper Privilege Management","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-250","lang":"en","description":"CWE-250: Execution with Unnecessary Privileges","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-03-02T19:17:22.220Z"},"source":{"advisory":"GHSA-2j3p-gqw5-g59j","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-02T19:44:23.867553Z","id":"CVE-2026-21882","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-02T19:44:41.557Z"}}]}}}