CVE-2019-18276
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.
Severity
HIGH
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
2.608%
chance of exploitation in the next 30 days
higher than 85.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-273: Improper Check for Dropped Privileges
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-06-09 |
Timeline
- 2019-11-28Published by the CNA00:27 UTC
- 2025-06-09CISA SSVC decision recorded2020 days after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| gnu bash | 5.0no fix listedthrough 5.0no fix listed | not listednot listed |
| netapp hci_management_node | ||
| netapp oncommand_unified_manager | from 9.5no fix listed | not listed |
| netapp solidfire | ||
| oracle communications_cloud_native_core_policy | 1.14.0no fix listed | not listed |
References
- https://github.com/bminor/bash/commit/951bdaad7a18cc0dc1036bba86b18b90874d39ff
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.gentoo.org/glsa/202105-34
- http://packetstormsecurity.com/files/155498/Bash-5.0-Patch-11-Privilege-Escalation.html
- https://www.youtube.com/watch?v=-wGtxJ8opa8
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E
- https://security.netapp.com/advisory/ntap-20200430-0003/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2019-18276'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2019-18276'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2019-18276'curl 'https://api.contrastcyber.com/cve_products/CVE-2019-18276'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).