{"api_version":"1","generated_at":"2026-07-23T16:46:18+00:00","cve":"CVE-2021-32749","urls":{"html":"https://cve.report/CVE-2021-32749","api":"https://cve.report/api/cve/CVE-2021-32749.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32749","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32749"},"summary":{"title":"CVE-2021-32749","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-07-16 18:15:00","updated_at":"2023-11-07 03:35:00"},"problem_types":["CWE-94"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202310-13","name":"GLSA-202310-13","refsource":"GENTOO","tags":[],"title":"GNU Mailutils: unexpected processsing of escape sequences (GLSA 202310-13) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"429"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/","name":"FEDORA-2021-a18b79d182","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: fail2ban-0.11.2-9.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/","name":"FEDORA-2021-a18b79d182","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: fail2ban-0.11.2-9.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/","name":"FEDORA-2021-0ab8f6a19a","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: fail2ban-0.11.2-9.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844","name":"https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844","refsource":"MISC","tags":[],"title":"fixed possible RCE vulnerability, unset escape variable (default tild… · fail2ban/fail2ban@410a6ce · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/","name":"FEDORA-2021-0ab8f6a19a","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: fail2ban-0.11.2-9.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm","name":"https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm","refsource":"CONFIRM","tags":[],"title":"Possible RCE vulnerability in mailing action using mailutils (mail-whois) · Advisory · fail2ban/fail2ban · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9","name":"https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9","refsource":"MISC","tags":[],"title":"fixed possible RCE vulnerability, unset escape variable (default tild… · fail2ban/fail2ban@2ed414e · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32749","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32749","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32749","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"fail2ban","cpe5":"fail2ban","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"32749","vulnerable":"1","versionEndIncluding":"0.9.7","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"fail2ban","cpe5":"fail2ban","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"32749","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"32749","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32749","qid":"179503","title":"Debian Security Update for fail2ban (CVE-2021-32749)"},{"cve":"CVE-2021-32749","qid":"281997","title":"Fedora Security Update for fail2ban (FEDORA-2021-0ab8f6a19a)"},{"cve":"CVE-2021-32749","qid":"501956","title":"Alpine Linux Security Update for fail2ban"},{"cve":"CVE-2021-32749","qid":"502215","title":"Alpine Linux Security Update for fail2ban"},{"cve":"CVE-2021-32749","qid":"503920","title":"Alpine Linux Security Update for fail2ban"},{"cve":"CVE-2021-32749","qid":"690199","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for fail2ban (c848059a-318b-11ec-aa15-0800270512f4)"},{"cve":"CVE-2021-32749","qid":"710773","title":"Gentoo Linux GNU Mailutils unexpected processsing of escape sequences Vulnerability (GLSA 202310-13)"},{"cve":"CVE-2021-32749","qid":"751147","title":"OpenSUSE Security Update for fail2ban (openSUSE-SU-2021:1274-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32749","STATE":"PUBLIC","TITLE":"Possible RCE vulnerability in mailing action using mailutils (mail-whois)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"fail2ban","version":{"version_data":[{"version_value":"<= 0.9.7"},{"version_value":">= 0.10.0, <= 0.10.6"},{"version_value":">= 0.11.0, <= 0.11.2"}]}}]},"vendor_name":"fail2ban"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm","refsource":"CONFIRM","url":"https://github.com/fail2ban/fail2ban/security/advisories/GHSA-m985-3f3v-cwmm"},{"name":"https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9","refsource":"MISC","url":"https://github.com/fail2ban/fail2ban/commit/2ed414ed09b3bb4c478abc9366a1ff22024a33c9"},{"name":"https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844","refsource":"MISC","url":"https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844"},{"refsource":"FEDORA","name":"FEDORA-2021-0ab8f6a19a","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5WHJK2X2MR2WDYZMCW7COZXJDUSDYMY6/"},{"refsource":"FEDORA","name":"FEDORA-2021-a18b79d182","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZRYQ77MTX5WSV33VCJLK4KBKR55QZ7ZA/"},{"refsource":"GENTOO","name":"GLSA-202310-13","url":"https://security.gentoo.org/glsa/202310-13"}]},"source":{"advisory":"GHSA-m985-3f3v-cwmm","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-07-16 18:15:00","lastModifiedDate":"2023-11-07 03:35:00","problem_types":["CWE-94"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:fail2ban:fail2ban:*:*:*:*:*:*:*:*","versionStartIncluding":"0.11.0","versionEndExcluding":"0.11.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:fail2ban:fail2ban:*:*:*:*:*:*:*:*","versionStartIncluding":"0.10.0","versionEndExcluding":"0.10.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:fail2ban:fail2ban:*:*:*:*:*:*:*:*","versionEndIncluding":"0.9.7","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32749","Ordinal":"208137","Title":"CVE-2021-32749","CVE":"CVE-2021-32749","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32749","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"32749","Ordinal":"2","NoteData":"2021-07-16","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"32749","Ordinal":"3","NoteData":"2021-10-29","Type":"Other","Title":"Modified"}]}}}