VulnarioBlogFail2ban vulnerabilities

Fail2ban Vulnerabilities: The 9 Most Critical Fail2ban Security Bugs (CVEs)

Fail2ban vulnerabilities are security flaws in Fail2ban that attackers can abuse to steal data, take over a server or interrupt a service. Fail2ban blocks brute-force attempts by banning abusive IP addresses. The National Vulnerability Database (NVD) lists 9 CVEs for Fail2ban, 0 of them rated critical, and none were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.

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

Key takeaways

  • No Fail2ban CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
  • 0 Fail2ban 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-2021-32749, published Jul 16, 2021.
  • You can monitor Fail2ban for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these Fail2ban 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 9 most critical Fail2ban CVEs at a glance

Most critical Fail2ban vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2021-327498.1 High2021-07-16OS command injectionNo
2CVE-2012-56427.5 (v2) High2012-12-31Security flawNo
3CVE-2007-43216.8 (v2) Medium2007-08-14Denial of serviceNo
4CVE-2013-71765.0 (v2) Medium2014-02-01Improper input validationNo
5CVE-2013-71775.0 (v2) Medium2014-02-01Improper input validationNo
6CVE-2013-21785.0 (v2) Medium2013-08-28Improper input validationNo
7CVE-2006-63025.0 (v2) Medium2006-12-06Denial of serviceNo
8CVE-2009-50234.7 (v2) Medium2014-06-10Link followingNo
9CVE-2009-03624.0 (v2) Medium2009-02-13Improper authenticationNo

Each Fail2ban CVE explained

1. CVE-2021-32749: OS command injection

  • CVSS 8.1 High
  • Published 2021-07-16
  • CWE-78
What NVD says
fail2ban is a daemon to ban hosts that cause multiple authentication errors. In versions 0.9.7 and prior, 0.10.0 through 0.10.6, and 0.11.0 through 0.11.2, there is a vulnerability that leads to possible remote code execution in the mailing action mail-whois.
How it can be attacked
Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 0.9.7; 0.10.0 to before 0.10.7; 0.11.0 to before 0.11.3
What to do
Upgrade to the fixed release for your branch (0.10.7, 0.11.3) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2021-32749 (opens in a new tab)

2. CVE-2012-5642: Security flaw

  • CVSS v2 7.5 High
  • Published 2012-12-31
What NVD says
server/action.py in Fail2ban before 0.8.8 does not properly handle the content of the matches tag, which might allow remote attackers to trigger unsafe behavior in a custom action file via unspecified symbols in this content.
Affected versions
up to and including 0.8.7.1; 0.1.0; 0.1.1; 0.1.2
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-5642 (opens in a new tab)

3. CVE-2007-4321: Denial of service

  • CVSS v2 6.8 Medium
  • Published 2007-08-14
What NVD says
fail2ban 0.8 and earlier does not properly parse sshd log files, which allows remote attackers to add arbitrary hosts to the /etc/hosts.deny file and cause a denial of service by adding arbitrary IP addresses to the sshd log file, as demonstrated by logging in via ssh with a client protocol version identification containing an IP address string, a different vector than CVE-2006-6302.
Affected versions
0.8
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2007-4321 (opens in a new tab)

4. CVE-2013-7176: Improper input validation

  • CVSS v2 5.0 Medium
  • Published 2014-02-01
  • CWE-20
What NVD says
config/filter.d/postfix.conf in the postfix filter in Fail2ban before 0.8.11 allows remote attackers to trigger the blocking of an arbitrary IP address via a crafted e-mail address that matches an improperly designed regular expression.
Affected versions
up to and including 0.8.10; 0.1.0; 0.1.1; 0.1.2
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-2013-7176 (opens in a new tab)

5. CVE-2013-7177: Improper input validation

  • CVSS v2 5.0 Medium
  • Published 2014-02-01
  • CWE-20
What NVD says
config/filter.d/cyrus-imap.conf in the cyrus-imap filter in Fail2ban before 0.8.11 allows remote attackers to trigger the blocking of an arbitrary IP address via a crafted e-mail address that matches an improperly designed regular expression.
Affected versions
up to and including 0.8.10; 0.1.0; 0.1.1; 0.1.2
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-2013-7177 (opens in a new tab)

6. CVE-2013-2178: Improper input validation

  • CVSS v2 5.0 Medium
  • Published 2013-08-28
  • CWE-20
What NVD says
The apache-auth.conf, apache-nohome.conf, apache-noscript.conf, and apache-overflows.conf files in Fail2ban before 0.8.10 do not properly validate log messages, which allows remote attackers to block arbitrary IP addresses via certain messages in a request.
Affected versions
up to and including 0.8.9; 0.1.0; 0.1.1; 0.1.2
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2013-2178 (opens in a new tab)

7. CVE-2006-6302: Denial of service

  • CVSS v2 5.0 Medium
  • Published 2006-12-06
What NVD says
fail2ban 0.7.4 and earlier does not properly parse sshd log files, which allows remote attackers to add arbitrary hosts to the /etc/hosts.deny file and cause a denial of service by adding arbitrary IP addresses to the sshd log file, as demonstrated by logging in via ssh with a login name containing certain strings with an IP address.
Affected versions
up to and including 0.7.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-2006-6302 (opens in a new tab)

8. CVE-2009-5023: Link following

  • CVSS v2 4.7 Medium
  • Published 2014-06-10
  • CWE-59
What NVD says
The (1) dshield.conf, (2) mail-buffered.conf, (3) mynetwatchman.conf, and (4) mynetwatchman.conf actions in action.d/ in Fail2ban before 0.8.5 allows local users to write to arbitrary files via a symlink attack on temporary files with predictable names, as demonstrated by /tmp/fail2ban-mail.txt.
Affected versions
up to and including 0.8.4; 0.1.0; 0.1.1; 0.1.2
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2009-5023 (opens in a new tab)

9. CVE-2009-0362: Improper authentication

  • CVSS v2 4.0 Medium
  • Published 2009-02-13
  • CWE-287
What NVD says
filter.d/wuftpd.conf in Fail2ban 0.8.3 uses an incorrect regular expression that allows remote attackers to cause a denial of service (forced authentication failures) via a crafted reverse-resolved DNS name (rhost) entry that contains a substring that is interpreted as an IP address, a different vulnerability than CVE-2007-4321.
Affected versions
0.8.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-2009-0362 (opens in a new tab)

How to check if your Fail2ban is vulnerable

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

fail2ban-client 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.

Fail2ban security checklist

  1. Keep the tool and its signatures or rules up to date.
  2. Run it with the least privilege that works.
  3. Restrict access to its management interface.
  4. Apply security releases promptly, since a flaw in a security tool is attractive to attackers.
  5. Monitor its logs for failures and tampering.

Where you run Fail2ban 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 Fail2ban: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than Fail2ban. A flaw anywhere in the chain can be the way in, so also review our guides to OpenSSH vulnerabilities, Nginx vulnerabilities and Apache HTTP Server vulnerabilities.

How to get alerted about new Fail2ban vulnerabilities

NVD received 0 new Fail2ban 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 Fail2ban 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 Fail2ban alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about Fail2ban vulnerabilities

What are the most critical Fail2ban vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Fail2ban CVEs include CVE-2021-32749 (CVSS 8.1), CVE-2012-5642 (CVSS 7.5), CVE-2007-4321 (CVSS 6.8). The guide above ranks the 9 most critical with affected versions and fixes.

Have Fail2ban vulnerabilities been exploited in real attacks?

For the Fail2ban product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep Fail2ban patched.

How many vulnerabilities does Fail2ban have?

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

How do I check which Fail2ban version I run?

Run fail2ban-client 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 Fail2ban CVE is published?

Add Fail2ban to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Fail2ban 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 Fail2ban secure?

Fail2ban is as secure as its patch level. NVD published 0 new Fail2ban 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-2021-32749?

CVE-2021-32749 is a high Fail2ban vulnerability with a CVSS score of 8.1, published Jul 16, 2021. fail2ban is a daemon to ban hosts that cause multiple authentication errors. In versions 0.9.7 and prior, 0.10.0 through 0.10.6, and 0.11.0 through 0.11.2, there is a vulnerability that leads to possible remote code execution in the mailing action mail-whois.

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.