Security mailing lists by PureSourceCode

CVE-2026-54552

HIGH 7.9CVSS 3.1

sh _uid does not drop supplementary groups (incomplete privilege drop)

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.

Published
18 Aug 2026
Last modified
22 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-273
Also known as
GHSA-q38v-wp89-2w55PYSEC-2026-3540
Sources
NVDJSONOSV GHSA-q38v-wp89-2w55JSONOSV PYSEC-2026-3540JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.9 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 7.9 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
OSV PyPA CVSS 3.1 HIGH 7.9 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI sh < 2.2.4 2.2.4

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 18 Aug 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.