UBUNTU-CVE-2021-32749

Source
https://ubuntu.com/security/CVE-2021-32749
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32749.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-32749
Related
Published
2021-07-16T18:15:00Z
Modified
2024-10-15T14:08:10Z
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

Ubuntu:Pro:14.04:LTS / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/ubuntu/fail2ban?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.8.11-1ubuntu0.1~esm1

Affected versions

0.*

0.8.10-3
0.8.11~pre1+git29-gccd2657-1
0.8.11-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.8.11-1ubuntu0.1~esm1",
            "binary_name": "fail2ban"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/ubuntu/fail2ban?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.3-1ubuntu0.1~esm1

Affected versions

0.*

0.9.3-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.9.3-1ubuntu0.1~esm1",
            "binary_name": "fail2ban"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/ubuntu/fail2ban?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.10.2-2ubuntu0.1~esm1

Affected versions

0.*

0.9.7-2
0.10.2-1
0.10.2-2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.10.2-2ubuntu0.1~esm1",
            "binary_name": "fail2ban"
        }
    ]
}

Ubuntu:20.04:LTS / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/ubuntu/fail2ban?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.10.2-2.1
0.11.1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:20.04:LTS / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/ubuntu/fail2ban?arch=src?distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.1-1ubuntu0.1~esm1

Affected versions

0.*

0.10.2-2.1
0.11.1-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.11.1-1ubuntu0.1~esm1",
            "binary_name": "fail2ban"
        }
    ]
}

Ubuntu:22.04:LTS / fail2ban

Package

Name
fail2ban
Purl
pkg:deb/ubuntu/fail2ban?arch=src?distro=jammy

Affected ranges

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

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.11.2-2",
            "binary_name": "fail2ban"
        }
    ]
}