Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2019-18276 EUVD-2019-8065GHSA-jcxc-5f87-vq5m

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…

Published Nov 28, 2019 · Updated Oct 14, 2026 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 bash 5.1~rc1-2 —
Debian 13 bash 5.1~rc1-2 —
Debian 12 bash 5.1~rc1-2 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS bash 5.0-6ubuntu1.2 USN-5380-1
Ubuntu 18.04 LTS bash 4.4.18-2ubuntu1.3 USN-5380-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS bash 4.3-14ubuntu1.4+esm1 USN-5380-1
Ubuntu Pro 14.04 LTS bash 4.3-7ubuntu1.8+esm2 USN-5380-1
ReleasePackageFixed inAdvisory
RHEL 8 bash +1 4.4.19-14.el8 RHSA-2021:1679

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 bash +1 4.4.19-14.el8 ELSA-2021-1679

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 9

References