CVE catalog

CVE-2026-54552

python-sh: CVE-2026-54552

[CVE catalog]

Severity
High · CVSS 8.2CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.17% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-shsid2.4.0-1fixed
Debianpython-shforky2.4.0-1fixed
Debianpython-shtrixie2.2.1-1vulnerable
Debianpython-shbookworm1.14.2-1vulnerable
PipshNot reported2.2.4fixed
PyPIshNot reported2.2.4fixed
Susepython-shlinux enterprise server 16.02.2.2-160000.3.1fixed
Susepython-shlinux enterprise server for sap applications 16.02.2.2-160000.3.1fixed
Susepython-shlinux enterprise server 16.02.2.2-160000.3.1fixed
Susepython-shlinux enterprise server for sap applications 16.02.2.2-160000.3.1fixed
Opensusepython-shleap 16.02.2.2-160000.3.1fixed
Susepython-shlinux enterprise module for python 3 15 sp72.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise high performance computing 15 sp4-espos2.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise high performance computing 15 sp4-ltss2.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise high performance computing 15 sp5-espos2.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise high performance computing 15 sp5-ltss2.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise server 15 sp4-ltss2.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise server 15 sp5-ltss2.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise server 15 sp6-ltss2.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise server for sap applications 15 sp42.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise server for sap applications 15 sp52.0.4-150400.9.6.1fixed
Susepython-shlinux enterprise server for sap applications 15 sp62.0.4-150400.9.6.1fixed
Opensusepython-shtumbleweed2.3.0-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-shsourcesid2.4.0-1not yet assignedNot reported[1145886]
Debianpython-shsourceforky2.4.0-1not yet assignedNot reported[1145886]
Debianpython-shsourcetrixie(unfixed)not yet assignedNot reported[1145886]
Debianpython-shsourcebookworm(unfixed)not yet assignedNot reported[1145886]
PipshpipNot reported2.2.4Not reportedNot reportedNot reported
PyPIshPyPINot reported2.2.4Not reportedNot reportedNot reported
Susepython-shrpmlinux enterprise server 16.02.2.2-160000.3.1Not reportedSUSE-SU-2026:23112-1Not reported
Susepython-shrpmlinux enterprise server for sap applications 16.02.2.2-160000.3.1Not reportedSUSE-SU-2026:23112-1Not reported
Susepython-shrpmlinux enterprise server 16.02.2.2-160000.3.1Not reportedSUSE-SU-2026:23134-1Not reported
Susepython-shrpmlinux enterprise server for sap applications 16.02.2.2-160000.3.1Not reportedSUSE-SU-2026:23134-1Not reported
Opensusepython-shrpmleap 16.02.2.2-160000.3.1Not reportedOPENSUSE-SU-2026:21516-1Not reported
Susepython-shrpmlinux enterprise module for python 3 15 sp72.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise high performance computing 15 sp4-espos2.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise high performance computing 15 sp4-ltss2.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise high performance computing 15 sp5-espos2.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise high performance computing 15 sp5-ltss2.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise server 15 sp4-ltss2.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise server 15 sp5-ltss2.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise server 15 sp6-ltss2.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise server for sap applications 15 sp42.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise server for sap applications 15 sp52.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Susepython-shrpmlinux enterprise server for sap applications 15 sp62.0.4-150400.9.6.1Not reportedSUSE-SU-2026:3422-1Not reported
Opensusepython-shrpmtumbleweed2.3.0-1.1Not reportedOPENSUSE-SU-2026:11372-1Not reported

[Debian bug #1145886]

Notes

[trixie] python-sh: Minor issue [bookworm] python-sh: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-sh]Affected

    Source package: [python-sh]

    Details (2)
    • 1.14.2-1 · all · bookworm

      Affected

      dsa · python-sh · debian · bookworm; dsa · python-sh · debian · 12

    • 1.14.2-1 · all · bookworm

      Affected

      dsa · python-sh · debian · bookworm; dsa · python-sh · debian · 12

[Debian 13 (Trixie)]

  • [python3-sh]Affected

    Source package: [python-sh]

    Details (2)
    • 2.2.1-1 · all · trixie

      Affected

      dsa · python-sh · debian · 13

    • 2.2.1-1 · all · trixie

      Affected

      dsa · python-sh · debian · 13

[openSUSE Tumbleweed]

  • [python313-sh]Unknown

    Source package: [python-sh]

    Details (1)
    • 2.4.0-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.3.0-1.1

      Version impact unknown

      dsa · python-sh · opensuse · tumbleweed

  • [python314-sh]Unknown

    Source package: [python-sh]

    Details (1)
    • 2.4.0-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.3.0-1.1

      Version impact unknown

      dsa · python-sh · opensuse · tumbleweed

Observed:

References