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.
CVE-2019-18276 - High Severity Vulnerability
Vulnerable Library - bashbash-4.3
Unofficial mirror of bash repository. Updated daily.
Library home page: https://github.com/bminor/bash.git
Found in base branch: master
Vulnerable Source Files (1)
/bash/bashline.c
Vulnerability Details
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.
Publish Date: 2019-11-28
URL: CVE-2019-18276
CVSS 3 Score Details (7.8)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://nvd.nist.gov/vuln/detail/CVE-2019-18276
Release Date: 2019-11-28
Fix Resolution: bash-debuginfo - 4.4.19-14;bash - 4.4.19-14,4.4.19-14,4.4.19-14,4.4.19-14,4.4.19-14;bash-doc - 4.4.19-14,4.4.19-14,4.4.19-14,4.4.19-14;bash-debugsource - 4.4.19-14
Step up your Open Source Security Game with Mend here