CVE-2021-32749
Fail2ban MITM Remote Code Execution
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.
INFO
Published Date :
July 16, 2021, 6:15 p.m.
Last Modified :
Nov. 7, 2023, 3:35 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.2
Public PoC/Exploit Available at Github
CVE-2021-32749 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-32749
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-32749
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-32749
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/ [No types assigned] Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/ -
CVE Modified by [email protected]
Oct. 19, 2023
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/202310-13 [No Types Assigned] -
Modified Analysis by [email protected]
Nov. 28, 2021
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/ Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Nov. 17, 2021
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/ [No Types Assigned] -
CVE Modified by [email protected]
Nov. 10, 2021
Action Type Old Value New Value Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/ [No Types Assigned] -
CVE Modified by [email protected]
Oct. 30, 2021
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/ [No Types Assigned] -
CVE Modified by [email protected]
Oct. 19, 2021
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/ [No Types Assigned] -
Initial Analysis by [email protected]
Jul. 27, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9 No Types Assigned https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9 Patch, Third Party Advisory Changed Reference Type https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844 No Types Assigned https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844 Patch, Third Party Advisory Changed Reference Type https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm No Types Assigned https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm Exploit, Patch, Third Party Advisory Added CWE NIST CWE-94 Added CPE Configuration OR *cpe:2.3:a:fail2ban:fail2ban:*:*:*:*:*:*:*:* versions up to (including) 0.9.7 *cpe:2.3:a:fail2ban:fail2ban:*:*:*:*:*:*:*:* versions from (including) 0.10.0 up to (excluding) 0.10.7 *cpe:2.3:a:fail2ban:fail2ban:*:*:*:*:*:*:*:* versions from (including) 0.11.0 up to (excluding) 0.11.3
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-32749
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-32749
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
1.78 }} -0.00%
score
0.87633
percentile