CVE-2019-18276
published high CVSS 3.1 · 7.8bash: when effective UID is not equal to its real UID the saved UID is not dropped
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Oracle Linux | 8 | bashaarch64 | Advisory build | 0:4.4.19-14.el8 | ELSA-2021-1679 |
| Red Hat Enterprise Linux | RHEL-8 | bashaarch64 | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Ubuntu | bionic | bash | Advisory build | 4.4.18-2ubuntu1.3 | USN-5380-1 |
| Oracle Linux | 8 | bashx86_64 | Advisory build | 0:4.4.19-14.el8 | ELSA-2021-1679 |
Show 31 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Oracle Linux | 8 | bash-docaarch64 | Advisory build | 0:4.4.19-14.el8 | ELSA-2021-1679 |
| Oracle Linux | 8 | bash-docx86_64 | Advisory build | 0:4.4.19-14.el8 | ELSA-2021-1679 |
| Red Hat Enterprise Linux | RHEL-8 | bashppc64le | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bashs390x | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bashsrc | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bashx86_64 | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-debuginfoaarch64 | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-debuginfoppc64le | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-debuginfos390x | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-debuginfox86_64 | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-debugsourceaarch64 | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-debugsourceppc64le | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-debugsources390x | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-debugsourcex86_64 | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-docaarch64 | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-docppc64le | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-docs390x | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Red Hat Enterprise Linux | RHEL-8 | bash-docx86_64 | Advisory build | 4.4.19-14.el8 | RHSA-2021:1679 |
| Ubuntu | bionic | bash-builtins | Advisory build | 4.4.18-2ubuntu1.3 | USN-5380-1 |
| Ubuntu | bionic | bash-static | Advisory build | 4.4.18-2ubuntu1.3 | USN-5380-1 |
| Ubuntu | esm | bash | Advisory build | 4.3-7ubuntu1.8+esm2 | USN-5380-1 |
| Ubuntu | esm | bash-builtins | Advisory build | 4.3-7ubuntu1.8+esm2 | USN-5380-1 |
| Ubuntu | esm | bash-static | Advisory build | 4.3-7ubuntu1.8+esm2 | USN-5380-1 |
| Ubuntu | focal | bash | Advisory build | 5.0-6ubuntu1.2 | USN-5380-1 |
| Ubuntu | focal | bash-builtins | Advisory build | 5.0-6ubuntu1.2 | USN-5380-1 |
| Ubuntu | focal | bash-static | Advisory build | 5.0-6ubuntu1.2 | USN-5380-1 |
| Ubuntu | xenial | bash | Advisory build | 4.3-14ubuntu1.4+esm1 | USN-5380-1 |
| Ubuntu | xenial | bash-builtins | Advisory build | 4.3-14ubuntu1.4+esm1 | USN-5380-1 |
| Ubuntu | xenial | bash-static | Advisory build | 4.3-14ubuntu1.4+esm1 | USN-5380-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
2- n/a
- CWE-273 CWE-273 Improper Check for Dropped Privileges
References
8- http://packetstormsecurity.com/files/155498/Bash-5.0-Patch-11-Privilege-Escalation.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://github.com/bminor/bash/commit/951bdaad7a18cc0dc1036bba86b18b90874d39ff
- [mina-dev] 20210225 [jira] [Created] (FTPSERVER-500) Security vulnerability in common/lib/log4j-1.2.17.jar https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E
- GLSA-202105-34 https://security.gentoo.org/glsa/202105-34
- https://security.netapp.com/advisory/ntap-20200430-0003/
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.youtube.com/watch?v=-wGtxJ8opa8
Provider assertions
4mitre · cna
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7efd111c155691b7af2e0624446e2b38676ff216f6c206ea890f46d200fbf731
- Ingested
- 14 Oct 2026, 09:52:31 UTC
- Source record
- Official CVE record