Improper Check for Dropped Privileges Affecting sh package, versions [,2.2.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-SH-18017924
  • published19 Jul 2026
  • disclosed17 Jul 2026
  • creditUnknown

Introduced: 17 Jul 2026

NewCVE-2026-54552  (opens in a new tab)
CWE-273  (opens in a new tab)

How to fix?

Upgrade sh to version 2.2.4 or higher.

Overview

sh is a Python subprocess replacement

Affected versions of this package are vulnerable to Improper Check for Dropped Privileges in the _uid process. An attacker can gain unauthorized access to files or resources associated with privileged supplementary groups by launching a subprocess from a privileged parent process that uses the _uid option to drop privileges.

CVSS Base Scores

version 4.0
version 3.1