CVE-2021-32749
published medium CVSS 3.1 · 6.1Possible RCE vulnerability in mailing action using mailutils (mail-whois)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fail2ban | — | fail2ban<= 0.9.7 · >= 0.10.0, <= 0.10.6 · >= 0.11.0, <= 0.11.2 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.2 | fail2bannoarch | Advisory build | 0.11.2-bp153.2.3.1 | OPENSUSE-SU-2021:1274-1 |
| Ubuntu | bionic | fail2ban | Advisory build | 0.10.2-2ubuntu0.1~esm1 | USN-5232-1 |
| Alpine Linux | v3.15 | fail2ban | Fixed | 0.11.2-r1 | Package fix record |
| Alpine Linux | v3.16 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| Alpine Linux | v3.17 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| Alpine Linux | v3.18 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
Show 20 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.19 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| Alpine Linux | v3.20 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| Alpine Linux | v3.21 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| Alpine Linux | v3.22 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| Alpine Linux | v3.23 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| Alpine Linux | v3.24 | fail2ban | Fixed | 0.11.2-r2 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.3 | fail2bannoarch | Advisory build | 0.11.2-bp153.2.3.1 | OPENSUSE-SU-2021:1274-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | fail2banaarch64 | Advisory build | 0.11.2-3.1 | OPENSUSE-SU-2024:10749-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | fail2banppc64le | Advisory build | 0.11.2-3.1 | OPENSUSE-SU-2024:10749-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | fail2bans390x | Advisory build | 0.11.2-3.1 | OPENSUSE-SU-2024:10749-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | fail2banx86_64 | Advisory build | 0.11.2-3.1 | OPENSUSE-SU-2024:10749-1 |
| Ubuntu | esm | fail2ban | Advisory build | 0.8.11-1ubuntu0.1~esm1 | USN-5232-1 |
| Ubuntu | focal | fail2ban | Advisory build | 0.11.1-1ubuntu0.1~esm1 | USN-5232-1 |
| Ubuntu | xenial | fail2ban | Advisory build | 0.9.3-1ubuntu0.1~esm1 | USN-5232-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | monitoring-plugins-fail2bannoarch | Advisory build | 0.11.2-bp153.2.3.1 | OPENSUSE-SU-2021:1274-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | monitoring-plugins-fail2bannoarch | Advisory build | 0.11.2-bp153.2.3.1 | OPENSUSE-SU-2021:1274-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | monitoring-plugins-fail2banaarch64 | Advisory build | 0.11.2-3.1 | OPENSUSE-SU-2024:10749-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | monitoring-plugins-fail2banppc64le | Advisory build | 0.11.2-3.1 | OPENSUSE-SU-2024:10749-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | monitoring-plugins-fail2bans390x | Advisory build | 0.11.2-3.1 | OPENSUSE-SU-2024:10749-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | monitoring-plugins-fail2banx86_64 | Advisory build | 0.11.2-3.1 | OPENSUSE-SU-2024:10749-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fail2ban | fail2ban | <= 0.9.7 (affected)>= 0.10.0, <= 0.10.6 (affected)>= 0.11.0, <= 0.11.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
6- https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9
- https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844
- https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm
- FEDORA-2021-0ab8f6a19a https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/
- FEDORA-2021-a18b79d182 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/
- GLSA-202310-13 https://security.gentoo.org/glsa/202310-13
Provider assertions
2GitHub_M · cna
Possible RCE vulnerability in mailing action using mailutils (mail-whois)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ce61e8be37c78a6cd4d34051a294ad90e52ecc9f8552e30cd318e26509fbf8e4
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record