VulnarioBlogGNU Bash vulnerabilities

GNU Bash Vulnerabilities: The 10 Most Critical GNU Bash Security Bugs (CVEs)

GNU Bash vulnerabilities are security flaws in GNU Bash that attackers can abuse to steal data, take over a server or interrupt a service. GNU Bash is the default shell on most Linux systems, known for the Shellshock bug. The National Vulnerability Database (NVD) lists 18 CVEs for GNU Bash, 2 of them rated critical, and none were published in the last 12 months. CISA lists 3 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.

This guide lists the 10 most critical GNU Bash security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers GNU Bash security basics and a free way to be told about the next GNU Bash CVE as soon as it is published.

Key takeaways

  • 3 CVEs are in CISA's KEV catalog, so attackers have exploited them in the wild.
  • 2 GNU Bash CVEs are rated critical (CVSS v3), and 0 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2022-3715, published Jan 5, 2023.
  • You can monitor GNU Bash for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these GNU Bash CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical GNU Bash CVEs at a glance

Most critical GNU Bash vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2014-71699.8 Critical2014-09-25GNU Bourne-Again Shell (Bash) Arbitrary Code ExecutionYes
2CVE-2014-62719.8 Critical2014-09-24GNU Bourne-Again Shell (Bash) Arbitrary Code ExecutionYes
3CVE-2014-62788.8 High2014-09-30GNU Bash OS Command InjectionYes
4CVE-2016-75438.4 High2017-01-19Improper input validationNo
5CVE-2022-37157.8 High2023-01-05Memory buffer overflowNo
6CVE-2019-182767.8 High2019-11-28Security flawNo
7CVE-2012-67117.8 High2019-06-18Memory buffer overflowNo
8CVE-2019-99247.8 High2019-03-22Missing authorizationNo
9CVE-2017-59327.8 High2017-03-27Improper input validationNo
10CVE-2016-06347.5 High2017-08-28OS command injectionNo

Each GNU Bash CVE explained

1. CVE-2014-7169: GNU Bourne-Again Shell (Bash) Arbitrary Code Execution

  • CVSS 9.8 Critical
  • In CISA KEV (added 2022-01-28)
  • Published 2014-09-25
  • CWE-78
What NVD says
GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of environment variables, which allows remote attackers to write to files or possibly have unknown other impact via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by…
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 4.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2014-7169 (opens in a new tab)

2. CVE-2014-6271: GNU Bourne-Again Shell (Bash) Arbitrary Code Execution

  • CVSS 9.8 Critical
  • In CISA KEV (added 2022-01-28)
  • Published 2014-09-24
  • CWE-78
What NVD says
GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which…
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 4.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2014-6271 (opens in a new tab)

3. CVE-2014-6278: GNU Bash OS Command Injection

  • CVSS 8.8 High
  • In CISA KEV (added 2025-10-02)
  • Published 2014-09-30
  • CWE-78
What NVD says
GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the values of environment variables, which allows remote attackers to execute arbitrary commands via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which…
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
1.14.0; 1.14.1; 1.14.2; 1.14.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2014-6278 (opens in a new tab)

4. CVE-2016-7543: Improper input validation

  • CVSS 8.4 High
  • Published 2017-01-19
  • CWE-20
What NVD says
Bash before 4.4 allows local users to execute arbitrary commands with root privileges via crafted SHELLOPTS and PS4 environment variables.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 4.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2016-7543 (opens in a new tab)

5. CVE-2022-3715: Memory buffer overflow

  • CVSS 7.8 High
  • Published 2023-01-05
  • CWE-119
What NVD says
A flaw was found in the bash package, where a heap-buffer overflow can occur in valid parameter_transform. This issue may lead to memory problems.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
5.1 to before 5.1.8
What to do
Upgrade to 5.1.8 or a later release, then restart the service.

NVD record for CVE-2022-3715 (opens in a new tab)

6. CVE-2019-18276: Security flaw

  • CVSS 7.8 High
  • Published 2019-11-28
  • CWE-273
What NVD says
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.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 5.0; 5.0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2019-18276 (opens in a new tab)

7. CVE-2012-6711: Memory buffer overflow

  • CVSS 7.8 High
  • Published 2019-06-18
  • CWE-119
What NVD says
A heap-based buffer overflow exists in GNU Bash before 4.3 when wide characters, not supported by the current locale set in the LC_CTYPE environment variable, are printed through the echo built-in function. A local attacker, who can provide data to print through the "echo -e" built-in function, may use this flaw to crash a script or execute code with the privileges of the bash process.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.2 through 4.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2012-6711 (opens in a new tab)

8. CVE-2019-9924: Missing authorization

  • CVSS 7.8 High
  • Published 2019-03-22
  • CWE-862
What NVD says
rbash in Bash before 4.4-beta2 did not prevent the shell user from modifying BASH_CMDS, thus allowing the user to execute any command with the permissions of the shell.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 4.4; 4.4
What to do
Upgrade to 4.4 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2019-9924 (opens in a new tab)

9. CVE-2017-5932: Improper input validation

  • CVSS 7.8 High
  • Published 2017-03-27
  • CWE-20
What NVD says
The path autocompletion feature in Bash 4.4 allows local users to gain privileges via a crafted filename starting with a " (double quote) character and a command substitution metacharacter.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.4
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2017-5932 (opens in a new tab)

10. CVE-2016-0634: OS command injection

  • CVSS 7.5 High
  • Published 2017-08-28
  • CWE-78
What NVD says
The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticated users to execute arbitrary code via shell metacharacters placed in 'hostname' of a machine.
How it can be attacked
Can be exploited remotely over the network with high attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2016-0634 (opens in a new tab)

How to check if your GNU Bash is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

bash --version

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

GNU Bash security checklist

  1. Update through your distribution's package manager and restart services that load the library.
  2. Do not feed untrusted input to the tool without validation or sandboxing.
  3. Track where it is embedded in your software, since many applications bundle their own copy.
  4. Run processing jobs as an unprivileged user with limited resources.

Where you run GNU Bash matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating GNU Bash: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than GNU Bash. A flaw anywhere in the chain can be the way in, so also review our guides to glibc vulnerabilities, sudo vulnerabilities and Linux Kernel vulnerabilities.

How to get alerted about new GNU Bash vulnerabilities

NVD received 0 new GNU Bash CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose GNU Bash and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run GNU Bash alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about GNU Bash vulnerabilities

What are the most critical GNU Bash vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical GNU Bash CVEs include CVE-2014-7169 (CVSS 9.8), CVE-2014-6271 (CVSS 9.8), CVE-2014-6278 (CVSS 8.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have GNU Bash vulnerabilities been exploited in real attacks?

Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 3 GNU Bash CVEs, including CVE-2014-7169, CVE-2014-6271, CVE-2014-6278. Treat these as the highest priority to patch.

How many vulnerabilities does GNU Bash have?

As of Nov 3, 2026 the National Vulnerability Database lists 18 CVEs for GNU Bash, with 2 rated critical by CVSS v3. 0 were published in the previous twelve months.

How do I check which GNU Bash version I run?

Run bash --version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new GNU Bash CVE is published?

Add GNU Bash to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose GNU Bash and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is GNU Bash secure?

GNU Bash is as secure as its patch level. NVD published 0 new GNU Bash CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2014-7169?

CVE-2014-7169 is a critical GNU Bash vulnerability with a CVSS score of 9.8, published Sep 25, 2014. GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of environment variables, which allows remote attackers to write to files or possibly have unknown other impact via a crafted environment, as demonstrated by vectors involving the…

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.