Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sh
  4. ›
  5. CVE-2026-54552

CVE-2026-54552: sh _uid does not drop supplementary groups (incomplete privilege drop)

July 17, 2026

The _uid option performed an incomplete privilege drop on Linux/Unix-like systems.

When sh was run from a process with elevated privileges, such as root, and a command was launched with _uid=<unprivileged user>, the child process changed its UID and primary GID but did not reset its supplementary groups. As a result, the child process could retain the parent process’s supplementary groups, potentially including privileged groups such as root, docker, disk, shadow, or sudo.

This could allow a subprocess that was expected to run with reduced privileges to access files or resources available to the original process’s supplementary groups. Users are impacted if they rely on _uid as a privilege boundary when launching commands from a privileged parent process.

References

  • github.com/advisories/GHSA-q38v-wp89-2w55
  • github.com/amoffat/sh/releases/tag/2.2.4
  • github.com/amoffat/sh/security/advisories/GHSA-q38v-wp89-2w55
  • nvd.nist.gov/vuln/detail/CVE-2026-54552

Code Behaviors & Features

Detect and mitigate CVE-2026-54552 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.2.4

Fixed versions

  • 2.2.4

Solution

Upgrade to version 2.2.4 or above.

Impact 7.9 HIGH

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-273: Improper Check for Dropped Privileges

Source file

pypi/sh/CVE-2026-54552.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:01 +0000.