CVE-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, 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.
EPSS 0.30% · 53.7th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:Pro:20.04:LTS | fail2ban | 0, 0.10.2-2.1, 0.11.1-1 |
| Ubuntu:Pro:16.04:LTS | fail2ban | 0.9.3-1, 0 |
| Ubuntu:Pro:18.04:LTS | fail2ban | 0, 0.10.2-1, 0.9.7-2 |
| Ubuntu:Pro:14.04:LTS | fail2ban | 0.8.11~pre1+git29-gccd2657-1, 0, 0.8.10-3 |
Timeline
- Jul 16, 2021 CVE Published
- Jul 17, 2021 EPSS Score
- Aug 23, 2021 PoC Published
- Sep 14, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Jan 11, 2022 EPSS Score
- Mar 12, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- Jul 9, 2022 EPSS Score
- Sep 7, 2022 EPSS Score
- Jan 4, 2023 EPSS Score
- Mar 5, 2023 EPSS Score
References
- https://ubuntu.com/security/CVE-2021-32749 third-party-advisory
- https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm third-party-advisory
- https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9 third-party-advisory
- https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844 third-party-advisory
- https://ubuntu.com/security/notices/USN-5232-1 vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2021-32749 third-party-advisory