An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11. By default, if Bash is run with its effective UID not equal to its real UID, it will drop privileges by setting its effective UID to its real UID. However, it does so incorrectly.
On Linux and other systems that support "saved UID" functionality, the saved UID is not dropped. An attacker with command execution in the shell can use "enable -f" for runtime loading of a new builtin, which can be a shared object that calls setuid() and therefore regains privileges. However, binaries running with an effective UID of 0 are unaffected.
Attack Parameters
Impact Assessment
CVSS Vector v3.1
Weakness Type (CWE)
Vulnerable Products 19
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Gnu Bash
cpe:2.3:a:gnu:bash:*:*:*:*:*:*:*:*
|
— |
<= 5.0
|
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:beta1:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:beta2:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch1:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch10:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch11:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch2:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch3:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch4:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch5:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch6:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch7:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch8:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:patch9:*:*:*:*:*:*
|
— | — |
|
Gnu Bash
cpe:2.3:a:gnu:bash:5.0:rc1:*:*:*:*:*:*
|
— | — |
|
Netapp Hci_Management_Node
cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Oncommand_Unified_Manager
cpe:2.3:a:netapp:oncommand_unified_manager:*:*:*:*:*:vmware_vsphere:*:*
|
9.5
|
— |
|
Netapp Solidfire
cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:*
|
— | — |
|
Oracle Communications_Cloud_Native_Core_Policy
cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.14.0:*:*:*:*:*:*:*
|
— | — |