CVE-2021-32749
published 2021-07-16CVE-2021-32749: 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…
PriorityP357high8.1CVSS 3.1
AVNACHPRNUINSUCHIHAH
EPSS
3.62%
88.2th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | fail2ban | < fail2ban 0.11.2-2 (bookworm) | fail2ban 0.11.2-2 (bookworm) |
| fail2ban | fail2ban | <= 0.9.7 | — |
| fail2ban | fail2ban | — | — |
| fail2ban | fail2ban | — | — |
| fail2ban | fail2ban | >= 0 < 0.11.2-2 | 0.11.2-2 |
| fail2ban | fail2ban | >= 0 < 0.11.2-2 | 0.11.2-2 |
| fail2ban | fail2ban | >= 0 < 0.11.2-2 | 0.11.2-2 |
| fail2ban | fail2ban | >= 0 < 0.11.2-2 | 0.11.2-2 |
| fail2ban | fail2ban | >= 0.10.0 < 0.10.7 | 0.10.7 |
| fail2ban | fail2ban | >= 0.11.0 < 0.11.3 | 0.11.3 |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
CVSS provenance
nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.1HIGH
vendor_debian6.1MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Fail2ban vulnerability
vendor_ubuntu·2022-09-12
CVE-2021-32749 Fail2ban vulnerability
Title: Fail2ban vulnerability
Summary: Fail2ban could be made to run programs as an administrator.
Jakub Żoczek discovered that certain Fail2ban actions handled whois responses in
an insecure way. If Fail2ban was configured to use certain mail actions
like 'mail-whois' on a target system, a remote attacker who was able to control whois
responses to this target system could possibly execute arbitrary code.
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2021-32749: fail2ban - fail2ban is a daemon to ban hosts that cause multiple authentication errors. In ...
vendor_debian·2021·CVSS 6.1
CVE-2021-32749 [MEDIUM] CVE-2021-32749: fail2ban - fail2ban is a daemon to ban hosts that cause multiple authentication errors. In ...
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.
Scope:
OSV
CVE-2021-32749: fail2ban is a daemon to ban hosts that cause multiple authentication errors
osv·2021-07-16·CVSS 8.1
CVE-2021-32749 [HIGH] CVE-2021-32749: fail2ban is a daemon to ban hosts that cause multiple authentication errors
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmmhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/https://security.gentoo.org/glsa/202310-13https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmmhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/https://security.gentoo.org/glsa/202310-13
2021-07-16
Published