
CVE catalog
CVE-2021-32749
fail2ban: CVE-2021-32749
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.43% · Oct 25, 2026
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. Command `mail` from mailutils package used in mail actions like `mail-whois` can execute command if unescaped sequences (`\n~`) are available in "foreign" input (for instance in whois output). To exploit the vulnerability, an attacker would need to insert malicious characters into the response sent by the whois server, either via a MITM attack or by taking over a whois server. The issue is patched in versions 0.10.7 and 0.11.3. As a workaround, one may avoid the usage of action `mail-whois` or patch the vulnerability manually.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | fail2ban | sid | 1.1.1-1 | fixed |
| Debian | fail2ban | forky | 1.1.1-1 | fixed |
| Debian | fail2ban | trixie | 1.1.0-8 | fixed |
| Debian | fail2ban | bookworm | 1.0.2-2 | fixed |
| Alpine | fail2ban | 3.15 | 0.11.2-r1 | fixed |
| Alpine | fail2ban | 3.16 | 0.11.2-r2 | fixed |
| Alpine | fail2ban | 3.17 | 0.11.2-r2 | fixed |
| Alpine | fail2ban | 3.18 | 0.11.2-r2 | fixed |
| Alpine | fail2ban | 3.19 | 0.11.2-r2 | fixed |
| Alpine | fail2ban | 3.20 | 0.11.2-r2 | fixed |
| Alpine | fail2ban | 3.21 | 0.11.2-r2 | fixed |
| Alpine | fail2ban | 3.22 | 0.11.2-r2 | fixed |
| Alpine | fail2ban | 3.23 | 0.11.2-r2 | fixed |
| Alpine | fail2ban | 3.24 | 0.11.2-r2 | fixed |
| Ubuntu | fail2ban | pro | 0.10.2-2.1 | vulnerable |
| Ubuntu | fail2ban | pro | 0.11.1-1 | vulnerable |
| Ubuntu | fail2ban | pro | 0.11.1-1ubuntu0.1~esm1 | fixed |
| Ubuntu | fail2ban | pro | 0.10.2-2.1 | vulnerable |
| Ubuntu | fail2ban | pro | 0.11.1-1 | vulnerable |
| Ubuntu | fail2ban | pro | 0.11.1-1ubuntu0.1~esm1 | fixed |
| Opensuse | fail2ban | tumbleweed | 0.11.2-3.1 | fixed |
| Suse | fail2ban | package hub 15 sp1 | 0.11.2-bp153.2.3.1 | fixed |
| Suse | fail2ban | package hub 15 sp2 | 0.11.2-bp153.2.3.1 | fixed |
| Suse | fail2ban | package hub 15 sp3 | 0.11.2-bp153.2.3.1 | fixed |
| Opensuse | fail2ban | leap 15.2 | 0.11.2-bp153.2.3.1 | fixed |
| Opensuse | fail2ban | leap 15.3 | 0.11.2-bp153.2.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | fail2ban | source | sid | 0.11.2-2 | not yet assigned | Not reported | Not reported |
| Debian | fail2ban | source | forky | 0.11.2-2 | not yet assigned | Not reported | Not reported |
| Debian | fail2ban | source | trixie | 0.11.2-2 | not yet assigned | Not reported | Not reported |
| Debian | fail2ban | source | bookworm | 0.11.2-2 | not yet assigned | Not reported | Not reported |
| Alpine | fail2ban | apk | 3.15 | 0.11.2-r1 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.16 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.17 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.18 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.19 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.20 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.21 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.22 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.23 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Alpine | fail2ban | apk | 3.24 | 0.11.2-r2 | Not reported | ALPINE-CVE-2021-32749 | Not reported |
| Ubuntu | fail2ban | deb | pro | 0.11.1-1ubuntu0.1~esm1 | Not reported | USN-5232-1 | Not reported |
| Ubuntu | fail2ban | deb | pro | 0.11.1-1ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-32749 | Not reported |
| Opensuse | fail2ban | rpm | tumbleweed | 0.11.2-3.1 | Not reported | OPENSUSE-SU-2024:10749-1 | Not reported |
| Suse | fail2ban | rpm | package hub 15 sp1 | 0.11.2-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1274-1 | Not reported |
| Suse | fail2ban | rpm | package hub 15 sp2 | 0.11.2-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1274-1 | Not reported |
| Suse | fail2ban | rpm | package hub 15 sp3 | 0.11.2-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1274-1 | Not reported |
| Opensuse | fail2ban | rpm | leap 15.2 | 0.11.2-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1274-1 | Not reported |
| Opensuse | fail2ban | rpm | leap 15.3 | 0.11.2-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1274-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [monitoring-plugins-fail2ban]Unknown
Source package: [fail2ban]
Details (1)
1.1.1-3.1· noarch · tumbleweedUnknown · Fixed:
0.11.2-3.1Version impact unknown
dsa · fail2ban · opensuse · tumbleweed
- [fail2ban]Fixed
Source package: [fail2ban]
Details (1)
1.1.1-3.1· x86_64 · tumbleweedFixed · Fixed:
0.11.2-3.1dsa · fail2ban · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [fail2ban]Fixed
Details (2)
1.0.2-2· all · bookwormFixed · Fixed:
0.11.2-2dsa · fail2ban · debian · bookworm; dsa · fail2ban · debian · 12
1.0.2-2· all · bookwormFixed · Fixed:
0.11.2-2dsa · fail2ban · debian · bookworm; dsa · fail2ban · debian · 12
[Debian 13 (Trixie)]
- [fail2ban]Fixed
Details (2)
1.1.0-8· all · trixieFixed · Fixed:
0.11.2-2dsa · fail2ban · debian · 13
1.1.0-8· all · trixieFixed · Fixed:
0.11.2-2dsa · fail2ban · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2021_1274-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-32749]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-32749]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-32749]
- [https://osv.dev/vulnerability/USN-5232-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2021:1274-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:10749-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-32749]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]