CVE-2026-54552

Source
https://cve.org/CVERecord?id=CVE-2026-54552
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54552.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54552
Aliases
Downstream
Related
Published
2026-08-18T17:37:40.430Z
Modified
2026-08-20T03:54:30.361178391Z
Severity
  • 7.9 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
Summary
sh _uid does not drop supplementary groups (incomplete privilege drop)
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54552.json",
    "cwe_ids": [
        "CWE-273"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/amoffat/sh

Affected ranges

Type
GIT
Repo
https://github.com/amoffat/sh
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.2.4"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

0.*
0.100
0.101
0.102
0.103
0.105
0.107
0.108
0.2
0.80
0.81
0.82
0.90
0.91
0.92
0.93
0.94
0.95
0.97
0.98
0.99
1.*
1.0
1.01
1.02
1.03
1.04
1.06
1.07
1.08
1.10
1.11
1.12.0
1.12.1
1.12.10
1.12.11
1.12.12
1.12.13
1.12.14
1.12.2
1.12.3
1.12.4
1.12.5
1.12.7
1.12.8
1.12.9
1.13.0
1.13.1
1.14.0
1.14.1
1.14.2
1.14.3
2.*
2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.1.0
2.2.0
2.2.1
2.2.2
2.2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54552.json"