CVE-2026-54552
Full vulnerability record from the local CVENow database.
Description
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.
Severity
HIGH
CVSS score
7.9
(v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-08-18 18:18:23.147000
Last modified
2026-10-22 22:10:00.250000
View original CVE JSON
{
"id": "CVE-2026-54552",
"sourceIdentifier": "[email protected]",
"published": "2026-08-18T18:18:23.147",
"lastModified": "2026-10-22T22:10:00.250",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "sh proporciona el lanzamiento de procesos Python. Antes de la 2.2.4, la opción _uid en sh.py realiza una caída de privilegios incompleta en sistemas Linux y similares a Unix. Cuando sh se ejecuta desde un proceso elevado y lanza un comando con _uid establecido a un usuario no privilegiado, el proceso hijo cambia su UID pero puede retener los grupos suplementarios del proceso padre porque la secuencia de caída de privilegios no establece completamente el UID, GID primario y grupos suplementarios del usuario objetivo. Por lo tanto, el proceso hijo puede retener el acceso a archivos o recursos otorgados a grupos privilegiados como root, docker, disk, shadow o sudo, violando el límite de privilegios _uid esperado. Este problema se corrige en la versión 2.2.4."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "amoffat",
"product": "sh",
"versions": [
{
"version": "< 2.2.4",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N",
"baseScore": 7.9,
"baseSeverity": "HIGH",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "HIGH",
"userInteraction": "NONE",
"scope": "CHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 1.5,
"impactScore": 5.8
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-08-18T18:44:23.350805Z",
"id": "CVE-2026-54552",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-273"
}
]
}
],
"references": [
{
"url": "https://github.com/amoffat/sh/commit/3d855daba91f87a089b490c0d1cf1df3faace2f1",
"source": "[email protected]"
},
{
"url": "https://github.com/amoffat/sh/pull/776",
"source": "[email protected]"
},
{
"url": "https://github.com/amoffat/sh/releases/tag/2.2.4",
"source": "[email protected]"
},
{
"url": "https://github.com/amoffat/sh/security/advisories/GHSA-q38v-wp89-2w55",
"source": "[email protected]"
}
]
}