CVSS 3.1
7.9 highCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:NHigh (7.9) in amoffat sh. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in sh 2.2.4.
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:Nsh (PyPI): fixed in 2.2.4Explain CVE-2026-54552 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-54552?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-54552?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-54552 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| amoffat sh | < 2.2.4 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-q38v-wp89-2w55 | PyPI | sh | <2.2.4 | 2.2.4 |
| PYSEC-2026-3540 | PyPI | sh | <2.2.4 | 2.2.4 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13 | python-sh | no fix listed | DEBIAN-CVE-2026-54552 |
| Debian | 14 | python-sh | 2.4.0-1 | DEBIAN-CVE-2026-54552 |
| Ubuntu | 16.04:LTS, 18.04:LTS, 20.04:LTS and 4 more | python-sh | no fix listed | UBUNTU-CVE-2026-54552 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 more | python-sh | 2.0.4-150400.9.6.1 | SUSE-SU-2026:3422-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | python-sh | 2.2.2-160000.3.1 | SUSE-SU-2026:23112-1 SUSE-SU-2026:23134-1 |
| openSUSE | Leap 16.0 | python-sh | 2.2.2-160000.3.1 | openSUSE-SU-2026:21516-1 |
| openSUSE | Tumbleweed | python-sh | 2.3.0-1.1 | openSUSE-SU-2026:11372-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.
Red Hat rates this Important.
A flaw of IMPORTANT severity was found in the sh Python library for process launching, which is bundled in the OpenShift Virtualization ocp-virt-validation-checkup-rhel9 container image (cnv-4.22 update stream). The _uid option in sh 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 process changes its UID but can retain the parent process's supplementary groups, because the privilege-drop sequence does not fully establish the target user's UID, primary GID, and supplementary groups. As a result, the child process can retain access to files and resources granted to privileged groups such as root, docker, disk, shadow, or sudo, violating the expected _uid privilege boundary and allowing unauthorized access and potential privilege escalation. Exploitation requires local access to an already-elevated process that uses the _uid option (CVSS 7.9, CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N), which matches the upstream severity. Within Red Hat, only the OpenShift Virtualization component listed above is flagged as affected; its resolution is delegated to the OpenShift Virtualization team, whose assessment concluded that the vulnerable code is not in the execute path for that container. Other Red Hat offerings that bundle sh, the Insights host-inventory service and the subscription-central-automation container image, are not affected because the sh versions they ship are outside the affected range (vulnerable code not present).
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/ocp-virt-validation-checkup-rhel9 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-54552.