Skip to content

CVE-2019-18276 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 settin...

HighCVSS 7.8 EPSS 2.6%
Published
Updated
Exploit status
No public exploit known

Description

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.

Affected products

ProductAffected versionsFixed in
debian/bash(Debian:12) < 5.1~rc1-2 5.1~rc1-2
debian/bash(Debian:13) < 5.1~rc1-2 5.1~rc1-2
debian/bash(Debian:14) < 5.1~rc1-2 5.1~rc1-2
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
GNU bash <= 5.0 No fix listed
GNU bash = 5.0-beta1 No fix listed
GNU bash = 5.0-beta2 No fix listed
GNU bash = 5.0-patch1 No fix listed
GNU bash = 5.0-patch10 No fix listed
GNU bash = 5.0-patch11 No fix listed
GNU bash = 5.0-patch2 No fix listed
GNU bash = 5.0-patch3 No fix listed
GNU bash = 5.0-patch4 No fix listed
GNU bash = 5.0-patch5 No fix listed
GNU bash = 5.0-patch6 No fix listed
GNU bash = 5.0-patch7 No fix listed
GNU bash = 5.0-patch8 No fix listed
GNU bash = 5.0-patch9 No fix listed
GNU bash = 5.0-rc1 No fix listed
netapp hci management node All versions No fix listed
netapp oncommand unified manager >= 9.5 No fix listed
netapp solidfire All versions No fix listed
oracle communications cloud native core policy = 1.14.0 No fix listed

References