Vulnerability in GNU Bash
CVE-2019-18276
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.
Published · last modified .
CVSS v3 metric
CVSS v3 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.
EPSS exploit prediction
EPSS 0.026, 85.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- GNU Bash — versions 5.0
- NetApp Hci Management Node
- NetApp Oncommand Unified Manager
- NetApp Solidfire
- Oracle Communications Cloud Native Core Policy — versions 1.14.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- M-ensimag/CVE-2019-18276 (3 stars, last pushed 2021-12-09)
- SABI-Ensimag/CVE-2019-18276 (last pushed 2022-02-01)
Also mentioned in 17 other repositories (aalexpereira/pipelines-tricks, ARPSyndicate/cvemon, broadinstitute/dsp-appsec-trivy-cicd, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- [mina-dev] 20210225 [jira] [Created] (FTPSERVER-500) Security vulnerability in common/lib/log4j-1.2.17.jar (mailing-list)
- GLSA-202105-34 (vendor-advisory, Third Party Advisory)
- www.oracle.com/security-alerts/cpuapr2022.html (Patch, Third Party Advisory)
- www.youtube.com/watch (Exploit, Third Party Advisory)
- github.com/bminor/bash/commit/951bdaad7a18cc0dc1036bba86b18b90874d39ff (Patch, Third Party Advisory)
- packetstormsecurity.com/files/155498/Bash-5.0-Patch-11-Privilege-Escalation.html (Exploit, VDB Entry, Third Party Advisory)
- security.netapp.com/advisory/ntap-20200430-0003/ (Third Party Advisory)
- cert-portal.siemens.com/productcert/html/ssa-398330.html
This CVE has public exploit evidence. See the latest CVEs with public exploits.