CVE-2021-32749
No exploitation reported by the sources we read.
- Published2021-07-16
- Fixed in0.11.3 · 0.10.7
- WeaknessCWE-78 · CWE-94
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-07-1618:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.11 | ≥ 0.11.0, < 0.11.3 | 0.11.3 | NVD |
| 0.10 | ≥ 0.10.0, < 0.10.7 | 0.10.7 | NVD |
| 0.9 | ≤ 0.9.7 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 34.x | = 34 | no fix published | NVD |
| 35.x | = 35 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- fail2banUbuntu:Pro:20.04:LTSall versions · fixed in 0.11.1-1ubuntu0.1~esm1
- fail2banUbuntu:Pro:18.04:LTSall versions · fixed in 0.10.2-2ubuntu0.1~esm1
- fail2banUbuntu:Pro:16.04:LTSall versions · fixed in 0.9.3-1ubuntu0.1~esm1
- fail2banUbuntu:Pro:14.04:LTSall versions · fixed in 0.8.11-1ubuntu0.1~esm1
- fail2banSUSE:Package Hub 15 SP3all versions · fixed in 0.11.2-bp153.2.3.1
- fail2banSUSE:Package Hub 15 SP2all versions · fixed in 0.11.2-bp153.2.3.1
- fail2banSUSE:Package Hub 15 SP1all versions · fixed in 0.11.2-bp153.2.3.1
- fail2banopenSUSE:Tumbleweedall versions · fixed in 0.11.2-3.1
17 more package ranges on OSV.dev
Vendor advisories
- CVE-2021-32749 Red Hat Product Security
fail2ban: Command injection via mail comand
Fix
- Update Fail2ban to 0.11.3 · 0.10.7
Advisories and patches
- github.comPatch
- github.comPatch
- github.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-10
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- EUVD-2021-19521same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- MGASA-2021-0464advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2021:1274-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:10749-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- USN-5232-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-07-16
- Last Modified
- 2026-06-17
- NVD status
- Modified
Frequently asked questions
What is CVE-2021-32749?
Is CVE-2021-32749 actively exploited?
What is the CVSS score for CVE-2021-32749?
Running fail2ban? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0