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.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Centos_linux | — | Upgrade bash-debugsourceUpgrade bash-docUpgrade bashUpgrade bash-debuginfo | Jun 1, 2021 | Nov 28, 2019 |
| Debian | — | Upgrade bash | Jul 30, 2024 | Nov 28, 2019 |
| Gentoo Linux | — | Upgrade app-shells/bash. | May 28, 2021 | Nov 28, 2019 |
| Huawei Euleros 2_0_sp2 | — | Upgrade bash | Nov 3, 2020 | Nov 28, 2019 |
| Huawei Euleros 2_0_sp3 | — | Upgrade bash | Sep 28, 2020 | Nov 28, 2019 |
| Huawei Euleros 2_0_sp5 | — | Upgrade bash | Mar 24, 2020 | Nov 28, 2019 |
| Huawei Euleros 2_0_sp8 | — | Upgrade bashUpgrade bash-doc | Feb 26, 2020 | Nov 28, 2019 |
| Oracle_linux | — | Upgrade bash-docUpgrade bash | May 26, 2021 | Jul 1, 2019 |
| Redhat_linux | — | Upgrade bashUpgrade bash-debugsourceNo solution existsUpgrade bash-debuginfoUpgrade bash-doc | May 21, 2021 | Nov 28, 2019 |
| Ubuntu | — | Upgrade bashUpgrade bash (Ubuntu Pro) | Apr 20, 2022 | Nov 28, 2019 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Nov 28, 2019 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub