PatchSiren cyber security CVE debrief
CVE-2026-54552 amoffat CVE debrief
CVE-2026-54552 is a high-severity vulnerability in the sh Python package, which provides process launching capabilities. The vulnerability allows an attacker to retain access to sensitive files and resources by exploiting an incomplete privilege drop on Linux and Unix-like systems. This issue has been fixed in version 2.2.4. The vulnerability arises when sh runs from an elevated process and launches a command with _uid set to an unprivileged user. The child process changes its UID but can retain the parent process's supplementary groups, thereby retaining access to files or resources granted to privileged groups such as root, docker, disk, shadow, or sudo. This violates the _uid
- Vendor
- amoffat
- Product
- sh
- CVSS
- HIGH 7.9
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-18
- Original CVE updated
- 2026-09-18
- Advisory published
- 2026-08-18
- Advisory updated
- 2026-09-18
Who should care
Defenders responsible for systems and applications using the sh Python package, especially in environments where unprivileged users can launch processes with elevated privileges, should assess exposure and prioritize patching or mitigation.
Why it matters
CVE-2026-54552 is a high-severity vulnerability in the sh Python package that allows an attacker to retain access to sensitive files and resources by exploiting an incomplete privilege drop on Linux and Unix-like systems. Defenders should prioritize patching or mitigating this vulnerability, especially in environments where unprivileged users can launch processes with elevated privileges.
- Potential unauthorized access to sensitive files and resources
- Possible escalation of privileges
- Increased risk of lateral movement
- Need for verification of patch deployment and system configuration
Technical summary
The sh Python package provides process launching capabilities. Prior to version 2.2.4, the _uid option in sh.py performs an incomplete privilege drop on Linux and Unix-like systems. When sh runs from an elevated process and launches a command with _uid set to an unprivileged user, the child changes its UID but can retain the parent process's supplementary groups. This allows the child to retain access to files or resources granted to privileged groups.
Defensive priority
Defenders should prioritize patching or mitigating this vulnerability, especially in environments where unprivileged users can launch processes with elevated privileges.
Recommended defensive actions
- Patch sh to version 2.2.4 or later
- Review and update process launching configurations to ensure proper privilege dropping
- Monitor for suspicious activity related to process launching
- Verify that the patch has been applied and is functioning correctly
- Review system logs for any signs of exploitation
- Implement additional monitoring and detection controls
- Track exceptions and retest remediated assets
Evidence notes
The CVE record and NVD entry provide details on the vulnerability, including its description, CVSS score, and affected versions. However, the corpus does not establish versions, exploitation, impact, or remediation beyond patching.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-54552 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-54552
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-54552 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-54552
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/amoffat/sh/commit/3d855daba91f87a089b490c0d1cf1df3faace2f1
-
Source reference
Unverified legacy reference
URL: https://github.com/amoffat/sh/pull/776
-
Source reference
Unverified legacy reference
URL: https://github.com/amoffat/sh/releases/tag/2.2.4
-
Source reference
Unverified legacy reference
URL: https://github.com/amoffat/sh/security/advisories/GHSA-q38v-wp89-2w55
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.