National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2019-18276 Detail

Current 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.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 7.8 HIGH
Vector:  CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://packetstormsecurity.com/files/155498/Bash-5.0-Patch-11-Privilege-Escalation.html Exploit Third Party Advisory VDB Entry
https://github.com/bminor/bash/commit/951bdaad7a18cc0dc1036bba86b18b90874d39ff Patch Third Party Advisory
https://www.youtube.com/watch?v=-wGtxJ8opa8 Exploit Third Party Advisory

Weakness Enumeration

CWE-ID CWE Name Source
CWE-273 Improper Check for Dropped Privileges NIST  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:gnu:bash:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (including)
5.0
 cpe:2.3:a:gnu:bash:5.0:beta1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:beta2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch10:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch11:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch5:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch6:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch7:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch8:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:patch9:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:gnu:bash:5.0:rc1:*:*:*:*:*:*
     Show Matching CPE(s)


Change History

3 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2019-18276
NVD Published Date:
11/27/2019
NVD Last Modified:
01/22/2020