CVE-2019-18276

NameCVE-2019-18276
DescriptionAn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
bash (PTS)jessie, jessie (lts)4.3-11+deb8u2vulnerable
stretch4.4-5vulnerable
buster5.0-4vulnerable
bullseye5.1-2+deb11u1fixed
bookworm5.2.15-2fixed
sid, trixie5.2.32-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
bashsource(unstable)5.1~rc1-2unimportant

Notes

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)

Search for package or bug name: Reporting problems