Name | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
bash (PTS) | jessie, jessie (lts) | 4.3-11+deb8u2 | vulnerable |
stretch | 4.4-5 | vulnerable | |
buster | 5.0-4 | vulnerable | |
bullseye | 5.1-2+deb11u1 | fixed | |
bookworm | 5.2.15-2 | fixed | |
sid, trixie | 5.2.32-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
bash | source | (unstable) | 5.1~rc1-2 | unimportant |
https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=951bdaad7a18cc0dc1036bba86b18b90874d39ff
https://savannah.gnu.org/patch/?9822
https://bugzilla.suse.com/show_bug.cgi?id=1158028
Negligible security impact
[wheezy] - bash <no-dsa> (minor issue)