CVE catalog

CVE-2021-32749

fail2ban: CVE-2021-32749

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
3.43% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianfail2bansid1.1.1-1fixed
Debianfail2banforky1.1.1-1fixed
Debianfail2bantrixie1.1.0-8fixed
Debianfail2banbookworm1.0.2-2fixed
Alpinefail2ban3.150.11.2-r1fixed
Alpinefail2ban3.160.11.2-r2fixed
Alpinefail2ban3.170.11.2-r2fixed
Alpinefail2ban3.180.11.2-r2fixed
Alpinefail2ban3.190.11.2-r2fixed
Alpinefail2ban3.200.11.2-r2fixed
Alpinefail2ban3.210.11.2-r2fixed
Alpinefail2ban3.220.11.2-r2fixed
Alpinefail2ban3.230.11.2-r2fixed
Alpinefail2ban3.240.11.2-r2fixed
Ubuntufail2banpro0.10.2-2.1vulnerable
Ubuntufail2banpro0.11.1-1vulnerable
Ubuntufail2banpro0.11.1-1ubuntu0.1~esm1fixed
Ubuntufail2banpro0.10.2-2.1vulnerable
Ubuntufail2banpro0.11.1-1vulnerable
Ubuntufail2banpro0.11.1-1ubuntu0.1~esm1fixed
Opensusefail2bantumbleweed0.11.2-3.1fixed
Susefail2banpackage hub 15 sp10.11.2-bp153.2.3.1fixed
Susefail2banpackage hub 15 sp20.11.2-bp153.2.3.1fixed
Susefail2banpackage hub 15 sp30.11.2-bp153.2.3.1fixed
Opensusefail2banleap 15.20.11.2-bp153.2.3.1fixed
Opensusefail2banleap 15.30.11.2-bp153.2.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianfail2bansourcesid0.11.2-2not yet assignedNot reportedNot reported
Debianfail2bansourceforky0.11.2-2not yet assignedNot reportedNot reported
Debianfail2bansourcetrixie0.11.2-2not yet assignedNot reportedNot reported
Debianfail2bansourcebookworm0.11.2-2not yet assignedNot reportedNot reported
Alpinefail2banapk3.150.11.2-r1Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.160.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.170.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.180.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.190.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.200.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.210.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.220.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.230.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Alpinefail2banapk3.240.11.2-r2Not reportedALPINE-CVE-2021-32749Not reported
Ubuntufail2bandebpro0.11.1-1ubuntu0.1~esm1Not reportedUSN-5232-1Not reported
Ubuntufail2bandebpro0.11.1-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2021-32749Not reported
Opensusefail2banrpmtumbleweed0.11.2-3.1Not reportedOPENSUSE-SU-2024:10749-1Not reported
Susefail2banrpmpackage hub 15 sp10.11.2-bp153.2.3.1Not reportedOPENSUSE-SU-2021:1274-1Not reported
Susefail2banrpmpackage hub 15 sp20.11.2-bp153.2.3.1Not reportedOPENSUSE-SU-2021:1274-1Not reported
Susefail2banrpmpackage hub 15 sp30.11.2-bp153.2.3.1Not reportedOPENSUSE-SU-2021:1274-1Not reported
Opensusefail2banrpmleap 15.20.11.2-bp153.2.3.1Not reportedOPENSUSE-SU-2021:1274-1Not reported
Opensusefail2banrpmleap 15.30.11.2-bp153.2.3.1Not reportedOPENSUSE-SU-2021:1274-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [fail2ban]

    Details (1)
    • 1.1.1-3.1 · noarch · tumbleweed

      Unknown · Fixed: 0.11.2-3.1

      Version impact unknown

      dsa · fail2ban · opensuse · tumbleweed

  • [fail2ban]Fixed

    Source package: [fail2ban]

    Details (1)
    • 1.1.1-3.1 · x86_64 · tumbleweed

      Fixed · Fixed: 0.11.2-3.1

      dsa · fail2ban · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • [fail2ban]Fixed
    Details (2)
    • 1.0.2-2 · all · bookworm

      Fixed · Fixed: 0.11.2-2

      dsa · fail2ban · debian · bookworm; dsa · fail2ban · debian · 12

    • 1.0.2-2 · all · bookworm

      Fixed · Fixed: 0.11.2-2

      dsa · fail2ban · debian · bookworm; dsa · fail2ban · debian · 12

[Debian 13 (Trixie)]

  • [fail2ban]Fixed
    Details (2)
    • 1.1.0-8 · all · trixie

      Fixed · Fixed: 0.11.2-2

      dsa · fail2ban · debian · 13

    • 1.1.0-8 · all · trixie

      Fixed · Fixed: 0.11.2-2

      dsa · fail2ban · debian · 13

Observed:

References