{"cve":"CVE-2026-54552","nvd":{"published":"2026-08-18T18:18:23.147","modified":"2026-10-22T22:10:00.250","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","score":7.9},"cwes":["CWE-273"],"references":["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"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:26.291718493+00:00"},"epss":{"cve":"CVE-2026-54552","score":0.00169,"percentile":0.06281,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-q38v-wp89-2w55","url":"https://osv.dev/vulnerability/GHSA-q38v-wp89-2w55","summary":"sh _uid does not drop supplementary groups (incomplete privilege drop)","modified":"2026-07-23T15:11:41.199641724Z","packages":[{"ecosystem":"PyPI","name":"sh","purl":"pkg:pypi/sh","ranges":["<2.2.4"],"fixed":["2.2.4"]}]},{"id":"PYSEC-2026-3540","url":"https://osv.dev/vulnerability/PYSEC-2026-3540","summary":"sh _uid does not drop supplementary groups (incomplete privilege drop)","modified":"2026-07-23T15:00:23.844332272Z","packages":[{"ecosystem":"PyPI","name":"sh","purl":"pkg:pypi/sh","ranges":["<2.2.4"],"fixed":["2.2.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}