Vulnerability Name:

CVE-2019-18276 (CCN-172331)

Assigned:2019-07-01
Published:2019-07-01
Updated:2022-06-07
Summary: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 v3 Severity:7.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
7.1 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:R)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.8 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
8.0 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:R)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
7.8 High (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
7.1 High (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:R)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:7.2 High (CVSS v2 Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
9.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-273
CWE-271
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2019-18276

Source: MISC
Type: Exploit, Third Party Advisory, VDB Entry
http://packetstormsecurity.com/files/155498/Bash-5.0-Patch-11-Privilege-Escalation.html

Source: XF
Type: UNKNOWN
gnu-bash-cve201918276-priv-esc(172331)

Source: CONFIRM
Type: Patch, Third Party Advisory
https://github.com/bminor/bash/commit/951bdaad7a18cc0dc1036bba86b18b90874d39ff

Source: MLIST
Type: Mailing List, Third Party Advisory
[mina-dev] 20210225 [jira] [Created] (FTPSERVER-500) Security vulnerability in common/lib/log4j-1.2.17.jar

Source: CCN
Type: Packet Storm Security [11-29-2019]
Bash 5.0 Patch 11 Privilege Escalation

Source: GENTOO
Type: Third Party Advisory
GLSA-202105-34

Source: CONFIRM
Type: Third Party Advisory
https://security.netapp.com/advisory/ntap-20200430-0003/

Source: EXPLOIT-DB
Type: EXPLOIT
Offensive Security Exploit Database [11-29-2019]

Source: CCN
Type: GNU Web site
Bash

Source: CCN
Type: IBM Security Bulletin 6493729 (Cloud Pak for Security)
Cloud Pak for Security is vulnerable to several CVEs

Source: CCN
Type: IBM Security Bulletin 6518316 (Hardware Management Console)
Vulnerability in Bash (CVE-2019-18276) affects HMC

Source: CCN
Type: IBM Security Bulletin 6520474 (QRadar SIEM)
IBM QRadar SIEM Application Framework Base Image is vulnerable to using components with Known Vulnerabilities

Source: CCN
Type: IBM Security Bulletin 6551876 (Cloud Pak for Security)
Cloud Pak for Security uses packages that are vulnerable to multiple CVEs

Source: CCN
Type: IBM Security Bulletin 6982841 (Netcool Operations Insight)
Netcool Operations Insight v1.6.8 addresses multiple security vulnerabilities.

Source: CCN
Type: Oracle CPUApr2022
Oracle Critical Patch Update Advisory - April 2022

Source: MISC
Type: Patch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2019-18276

Source: MISC
Type: Exploit, Third Party Advisory
https://www.youtube.com/watch?v=-wGtxJ8opa8

Vulnerable Configuration:Configuration 1:
  • cpe:/a:gnu:bash:*:*:*:*:*:*:*:* (Version <= 5.0)
  • OR cpe:/a:gnu:bash:5.0:patch1:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch2:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch3:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch4:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch5:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch6:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch7:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch8:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch9:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch10:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:patch11:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:beta1:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:beta2:*:*:*:*:*:*
  • OR cpe:/a:gnu:bash:5.0:rc1:*:*:*:*:*:*

  • Configuration 2:
  • cpe:/a:netapp:solidfire:-:*:*:*:*:*:*:*
  • OR cpe:/a:netapp:hci_management_node:-:*:*:*:*:*:*:*
  • OR cpe:/a:netapp:oncommand_unified_manager:*:*:*:*:*:vmware_vsphere:*:* (Version >= 9.5

  • Configuration 3:
  • cpe:/a:oracle:communications_cloud_native_core_policy:1.14.0:*:*:*:*:*:*:*

  • Configuration RedHat 1:
  • cpe:/o:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/o:redhat:enterprise_linux:8::baseos:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:ibm:qradar_security_information_and_event_manager:7.3:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:qradar_security_information_and_event_manager:7.4:-:*:*:*:*:*:*
  • OR cpe:/a:ibm:cloud_pak_for_security:1.7.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:cloud_pak_for_security:1.7.1.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:cloud_pak_for_security:1.7.2.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:hardware_management_console:9.2.950.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.redhat.rhsa:def:20211679
    P
    RHSA-2021:1679: bash security and bug fix update (Low)
    2021-05-18
    oval:com.ubuntu.disco:def:2019182760000000
    V
    CVE-2019-18276 on Ubuntu 19.04 (disco) - low.
    2019-11-28
    oval:com.ubuntu.bionic:def:2019182760000000
    V
    CVE-2019-18276 on Ubuntu 18.04 LTS (bionic) - low.
    2019-11-28
    oval:com.ubuntu.xenial:def:2019182760000000
    V
    CVE-2019-18276 on Ubuntu 16.04 LTS (xenial) - low.
    2019-11-28
    BACK
    gnu bash *
    gnu bash 5.0 patch1
    gnu bash 5.0 patch2
    gnu bash 5.0 patch3
    gnu bash 5.0 patch4
    gnu bash 5.0 patch5
    gnu bash 5.0 patch6
    gnu bash 5.0 patch7
    gnu bash 5.0 patch8
    gnu bash 5.0 patch9
    gnu bash 5.0 patch10
    gnu bash 5.0 patch11
    gnu bash 5.0 beta1
    gnu bash 5.0 beta2
    gnu bash 5.0 rc1
    netapp solidfire -
    netapp hci management node -
    netapp oncommand unified manager *
    oracle communications cloud native core policy 1.14.0
    ibm qradar security information and event manager 7.3
    ibm qradar security information and event manager 7.4 -
    ibm cloud pak for security 1.7.0.0
    ibm cloud pak for security 1.7.1.0
    ibm cloud pak for security 1.7.2.0
    ibm hardware management console 9.2.950.0