An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11.
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 19
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gnu:bash:*:*:*:*:*:*:*:* | up to 5.0 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:beta1:*:*:*:*:*:* | 5.0 beta1 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:beta2:*:*:*:*:*:* | 5.0 beta2 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch1:*:*:*:*:*:* | 5.0 patch1 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch10:*:*:*:*:*:* | 5.0 patch10 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch11:*:*:*:*:*:* | 5.0 patch11 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch2:*:*:*:*:*:* | 5.0 patch2 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch3:*:*:*:*:*:* | 5.0 patch3 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch4:*:*:*:*:*:* | 5.0 patch4 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch5:*:*:*:*:*:* | 5.0 patch5 | Vulnerable | GNU |
- cpe:2.3:a:gnu:bash:*:*:*:*:*:*:*:* Versions up to 5.0 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:beta1:*:*:*:*:*:* Versions 5.0 beta1 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:beta2:*:*:*:*:*:* Versions 5.0 beta2 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch1:*:*:*:*:*:* Versions 5.0 patch1 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch10:*:*:*:*:*:* Versions 5.0 patch10 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch11:*:*:*:*:*:* Versions 5.0 patch11 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch2:*:*:*:*:*:* Versions 5.0 patch2 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch3:*:*:*:*:*:* Versions 5.0 patch3 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch4:*:*:*:*:*:* Versions 5.0 patch4 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch5:*:*:*:*:*:* Versions 5.0 patch5 Vulnerable ·GNU
Show 9 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gnu:bash:5.0:patch6:*:*:*:*:*:* | 5.0 patch6 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch7:*:*:*:*:*:* | 5.0 patch7 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch8:*:*:*:*:*:* | 5.0 patch8 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:patch9:*:*:*:*:*:* | 5.0 patch9 | Vulnerable | GNU |
| cpe:2.3:a:gnu:bash:5.0:rc1:*:*:*:*:*:* | 5.0 rc1 | Vulnerable | GNU |
| cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:oncommand_unified_manager:*:*:*:*:*:vmware_vsphere:*:* | 9.5 | Vulnerable | NetApp |
| cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.14.0:*:*:*:*:*:*:* | 1.14.0 | Vulnerable | Oracle |
- cpe:2.3:a:gnu:bash:5.0:patch6:*:*:*:*:*:* Versions 5.0 patch6 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch7:*:*:*:*:*:* Versions 5.0 patch7 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch8:*:*:*:*:*:* Versions 5.0 patch8 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:patch9:*:*:*:*:*:* Versions 5.0 patch9 Vulnerable ·GNU
- cpe:2.3:a:gnu:bash:5.0:rc1:*:*:*:*:*:* Versions 5.0 rc1 Vulnerable ·GNU
- cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:oncommand_unified_manager:*:*:*:*:*:vmware_vsphere:*:* Versions 9.5 Vulnerable ·NetApp
- cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.14.0:*:*:*:*:*:*:* Versions 1.14.0 Vulnerable ·Oracle
Remediation
Red Hat 1 advisory
- RHSA-2021:1679 Released 2021-05-18 · Red Hat rating Lowbash security and bug fix update
- Red Hat Enterprise Linux BaseOS (v. 8) bash-4.4.19-14.el8, bash-doc-4.4.19-14.el8
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2021:1679 |
Timeline
- 2026-10-02 Threatist record created from CVE-2019-18276
- 2026-10-03 Alias added: GHSA-jcxc-5f87-vq5m
References
Exploit 2
Patch 2
Sources
- CVE-2019-18276 · CVE Program
- CVE-2019-18276 · NVD
- FIRST EPSS
- GHSA-jcxc-5f87-vq5m · GitHub Advisory Database · CC BY 4.0
- CVE-2019-18276 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences