CVE-2021-32749

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-32749
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32749.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-32749
Aliases
  • GHSA-m985-3f3v-cwmm
Related
Published
2021-07-16T18:15:08Z
Modified
2024-12-05T15:29:13.700383Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Alpine:v3.15 / fail2ban

Package

Name
fail2ban
Purl
pkg:apk/alpine/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-r1

Affected versions

0.*

0.8.4-r0
0.8.4-r1
0.8.4-r2
0.8.6-r0
0.8.7.1-r0
0.8.8-r0
0.8.9-r0
0.8.10-r0
0.8.11-r0
0.8.12-r0
0.9.0-r0
0.9.1-r0
0.9.3-r0
0.9.3-r1
0.9.4-r0
0.10.1-r0
0.10.3.1-r0
0.10.3.1-r1
0.10.3.1-r2
0.10.4-r0
0.10.4-r1
0.10.4-r2
0.11.1-r0
0.11.1-r1
0.11.1-r2
0.11.1-r3
0.11.1-r4
0.11.2-r0

Alpine:v3.16 / fail2ban

Package

Name
fail2ban
Purl
pkg:apk/alpine/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-r2

Affected versions

0.*

0.8.4-r0
0.8.4-r1
0.8.4-r2
0.8.6-r0
0.8.7.1-r0
0.8.8-r0
0.8.9-r0
0.8.10-r0
0.8.11-r0
0.8.12-r0
0.9.0-r0
0.9.1-r0
0.9.3-r0
0.9.3-r1
0.9.4-r0
0.10.1-r0
0.10.3.1-r0
0.10.3.1-r1
0.10.3.1-r2
0.10.4-r0
0.10.4-r1
0.10.4-r2
0.11.1-r0
0.11.1-r1
0.11.1-r2
0.11.1-r3
0.11.1-r4
0.11.2-r0
0.11.2-r1

Alpine:v3.17 / fail2ban

Package

Name
fail2ban
Purl
pkg:apk/alpine/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-r2

Affected versions

0.*

0.8.4-r0
0.8.4-r1
0.8.4-r2
0.8.6-r0
0.8.7.1-r0
0.8.8-r0
0.8.9-r0
0.8.10-r0
0.8.11-r0
0.8.12-r0
0.9.0-r0
0.9.1-r0
0.9.3-r0
0.9.3-r1
0.9.4-r0
0.10.1-r0
0.10.3.1-r0
0.10.3.1-r1
0.10.3.1-r2
0.10.4-r0
0.10.4-r1
0.10.4-r2
0.11.1-r0
0.11.1-r1
0.11.1-r2
0.11.1-r3
0.11.1-r4
0.11.2-r0
0.11.2-r1

Alpine:v3.18 / fail2ban

Package

Name
fail2ban
Purl
pkg:apk/alpine/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-r2

Affected versions

0.*

0.8.4-r0
0.8.4-r1
0.8.4-r2
0.8.6-r0
0.8.7.1-r0
0.8.8-r0
0.8.9-r0
0.8.10-r0
0.8.11-r0
0.8.12-r0
0.9.0-r0
0.9.1-r0
0.9.3-r0
0.9.3-r1
0.9.4-r0
0.10.1-r0
0.10.3.1-r0
0.10.3.1-r1
0.10.3.1-r2
0.10.4-r0
0.10.4-r1
0.10.4-r2
0.11.1-r0
0.11.1-r1
0.11.1-r2
0.11.1-r3
0.11.1-r4
0.11.2-r0
0.11.2-r1

Alpine:v3.19 / fail2ban

Package

Name
fail2ban
Purl
pkg:apk/alpine/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-r2

Affected versions

0.*

0.8.4-r0
0.8.4-r1
0.8.4-r2
0.8.6-r0
0.8.7.1-r0
0.8.8-r0
0.8.9-r0
0.8.10-r0
0.8.11-r0
0.8.12-r0
0.9.0-r0
0.9.1-r0
0.9.3-r0
0.9.3-r1
0.9.4-r0
0.10.1-r0
0.10.3.1-r0
0.10.3.1-r1
0.10.3.1-r2
0.10.4-r0
0.10.4-r1
0.10.4-r2
0.11.1-r0
0.11.1-r1
0.11.1-r2
0.11.1-r3
0.11.1-r4
0.11.2-r0
0.11.2-r1

Alpine:v3.20 / fail2ban

Package

Name
fail2ban
Purl
pkg:apk/alpine/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-r2

Affected versions

0.*

0.8.4-r0
0.8.4-r1
0.8.4-r2
0.8.6-r0
0.8.7.1-r0
0.8.8-r0
0.8.9-r0
0.8.10-r0
0.8.11-r0
0.8.12-r0
0.9.0-r0
0.9.1-r0
0.9.3-r0
0.9.3-r1
0.9.4-r0
0.10.1-r0
0.10.3.1-r0
0.10.3.1-r1
0.10.3.1-r2
0.10.4-r0
0.10.4-r1
0.10.4-r2
0.11.1-r0
0.11.1-r1
0.11.1-r2
0.11.1-r3
0.11.1-r4
0.11.2-r0
0.11.2-r1

Alpine:v3.21 / fail2ban

Package

Name
fail2ban
Purl
pkg:apk/alpine/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-r2

Affected versions

0.*

0.8.4-r0
0.8.4-r1
0.8.4-r2
0.8.6-r0
0.8.7.1-r0
0.8.8-r0
0.8.9-r0
0.8.10-r0
0.8.11-r0
0.8.12-r0
0.9.0-r0
0.9.1-r0
0.9.3-r0
0.9.3-r1
0.9.4-r0
0.10.1-r0
0.10.3.1-r0
0.10.3.1-r1
0.10.3.1-r2
0.10.4-r0
0.10.4-r1
0.10.4-r2
0.11.1-r0
0.11.1-r1
0.11.1-r2
0.11.1-r3
0.11.1-r4
0.11.2-r0
0.11.2-r1

Debian:11 / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/debian/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/debian/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/debian/fail2ban?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.2-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/fail2ban/fail2ban

Affected ranges

Type
GIT
Repo
https://github.com/fail2ban/fail2ban
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

0.*

0.1.0
0.1.1
0.3.0
0.3.1
0.4.0
0.4.1
0.6.0
0.6.1
0.7.1
0.7.3
0.7.4
0.7.5
0.7.6
0.7.7
0.7.8
0.7.9
0.8.0
0.8.1
0.8.10
0.8.11
0.8.11.pre1
0.8.12
0.8.13
0.8.2
0.8.3
0.8.4
0.8.5
0.8.6
0.8.7
0.8.7.1
0.8.8
0.8.9
0.9.0
0.9.0a1
0.9.0a2
0.9.1
0.9.2
0.9.3
0.9.4
0.9.5
0.9.6
0.9.7

Other

CVE-2013-7176
CVE-2013-7177