<Vulnerability name="CVE-2026-54552">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-08-18T17:37:40</PublicDate>
    <Bugzilla id="2518108" url="https://bugzilla.redhat.com/show_bug.cgi?id=2518108" xml:lang="en:us">
sh: sh: Incomplete privilege drop allows child processes to retain privileged group access.
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>7.9</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-273</CWE>
    <Details xml:lang="en:us" source="Mitre">
sh provides Python process launching. Prior to 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 because the privilege-drop sequence does not fully establish the target user's UID, primary GID, and supplementary groups. The child can therefore retain access to files or resources granted to privileged groups such as root, docker, disk, shadow, or sudo, violating the expected _uid privilege boundary. This issue is fixed in version 2.2.4.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in sh, a Python library for process launching. When sh runs from an elevated process and launches a command with the `_uid` option set to an unprivileged user, the child process may retain the parent process's supplementary groups. This incomplete privilege drop can allow the child process to retain access to files or resources granted to privileged groups, leading to unauthorized access and potential privilege escalation.
    </Details>
    <PackageState cpe="cpe:/a:redhat:container_native_virtualization:4">
        <ProductName>Red Hat OpenShift Virtualization 4</ProductName>
        <FixState>Affected</FixState>
        <PackageName>container-native-virtualization/ocp-virt-validation-checkup-rhel9</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-54552
https://nvd.nist.gov/vuln/detail/CVE-2026-54552
https://github.com/amoffat/sh/commit/3d855daba91f87a089b490c0d1cf1df3faace2f1
https://github.com/amoffat/sh/pull/776
https://github.com/amoffat/sh/releases/tag/2.2.4
https://github.com/amoffat/sh/security/advisories/GHSA-q38v-wp89-2w55
    </References>
</Vulnerability>