CVEfocus › CVE database › CVE-2019-18276

CVE-2019-18276

CVSS 7.8 HighEPSS 4.6% (higher than 92% of CVEs)Published 2019-11-28Updated 2026-10-14Assigner: mitre

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.

CWE-273

What to do

Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
4Fix pending
3Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04bashNot affected
vulnerable_code_not_present
Ubuntu 20.04bashFixed5.0-6ubuntu1.2UBUNTU-CVE-2019-18276
Ubuntu 18.04bashFixed4.4.18-2ubuntu1.3UBUNTU-CVE-2019-18276
Ubuntu 16.04bashFix pending4.3-14ubuntu1.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2019-18276
Ubuntu 14.04bashFix pending4.3-7ubuntu1.8+esm2 (Ubuntu Pro)UBUNTU-CVE-2019-18276
Debian 14bashFixed5.1~rc1-2DEBIAN-CVE-2019-18276
Debian 13bashFixed5.1~rc1-2DEBIAN-CVE-2019-18276
Debian 12bashFixed5.1~rc1-2DEBIAN-CVE-2019-18276
Red Hat Enterprise Linux 8bashFixed0:4.4.19-14.el8RHSA-2021:1679
Red Hat Enterprise Linux 8bash-docFixed0:4.4.19-14.el8RHSA-2021:1679
Red Hat Enterprise Linux 7bashFix pending
Fix deferred
Red Hat Enterprise Linux 7bash-docFix pending
Fix deferred
Red Hat Enterprise Linux 6bashWill not fix
Out of support scope
Red Hat Enterprise Linux 6bash-docWill not fix
Out of support scope
Red Hat Enterprise Linux 5bashWill not fix
Out of support scope

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.