CVE-2026-54552
CVE-2026-54552 · sh _uid does not drop supplementary groups (incomplete privilege drop)
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 7.9 · High · EPSS 0.2% · Fix available
- Published
- Updated
Affected products and versions
sh
- Versions
- < 2.2.4: Affected
No fix published
python-sh Debian:12
- Versions
- 1.14.2-1
- 2.0.7-1
- 2.2.1-1
- 2.2.1-2
- 2.4.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-sh Debian:13
- Versions
- 2.2.1-1
- 2.2.1-2
- 2.4.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-sh Debian:14
- Versions
- 2.2.1-1
- 2.2.1-2
- Affected ranges
- ECOSYSTEM: < 2.4.0-1
Update to 2.4.0-1
sh PyPI
- Versions
- 0.01
- 0.106
- 0.107
- 0.108
- 1.0
- 1.01
- 1.02
- 1.03
- 1.04
- 1.05
- 1.06
- 1.07
- 1.08
- 1.09
- 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.6
- 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.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
- Affected ranges
- ECOSYSTEM: < 2.2.4
Update to 2.2.4
python-sh Ubuntu:16.04:LTS
- Versions
- 1.11-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-sh Ubuntu:18.04:LTS
- Versions
- 1.11-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-sh Ubuntu:20.04:LTS
- Versions
- 1.12.14-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-sh Ubuntu:22.04:LTS
- Versions
- 1.14.1-1
- 1.14.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-sh Ubuntu:24.04:LTS
- Versions
- 1.14.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-sh Ubuntu:26.10
- Versions
- 2.2.1-1
- 2.2.1-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-sh Ubuntu:26.04:LTS
- Versions
- 2.2.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published