CVE-2026-109786
In fail2ban 0.10.5 through 1.1.1 before ddd879d, the sshd filter (config/filter.d/sshd.conf) accepts an "on <token>" suffix after the host address. Because OpenSSH logs the offered username verbatim, a remote unauthenticated attacker can use a username such as "x VICTIM-SOURCE-IP-ADDRESS on" to make fail2ban associate failed login attempts with an arbitrary source IP address and ban it (e.g., to block logins from a legitimate user). The default filter mode is affected.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | fail2ban | Fix pending | UBUNTU-CVE-2026-109786 | |
| Ubuntu 26.04 | fail2ban | Under investigation | UBUNTU-CVE-2026-109786 | |
| Ubuntu 24.04 | fail2ban | Under investigation | UBUNTU-CVE-2026-109786 | |
| Ubuntu 22.04 | fail2ban | Under investigation | UBUNTU-CVE-2026-109786 | |
| Ubuntu 20.04 | fail2ban | Fix pending | UBUNTU-CVE-2026-109786 | |
| Ubuntu 18.04 | fail2ban | Fix pending | UBUNTU-CVE-2026-109786 | |
| Ubuntu 16.04 | fail2ban | Fix pending | UBUNTU-CVE-2026-109786 | |
| Ubuntu 14.04 | fail2ban | Fix pending | UBUNTU-CVE-2026-109786 | |
| Debian 14 | fail2ban | Fix pending | DEBIAN-CVE-2026-109786 | |
| Debian 13 | fail2ban | Fix pending | DEBIAN-CVE-2026-109786 | |
| Debian 12 | fail2ban | Fix pending | DEBIAN-CVE-2026-109786 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- fail2ban: affected: 0.10.5 to 1.1.1
Solution: Apply upstream commit ddd879d22664904ace24e1255ac6571808c58187, or upgrade to the first fail2ban release after 1.1.1 that contains it.
Workaround: Override __on_port_opt and __suff in a local filter.d/sshd.local so that only an optional "port N" may follow the host address, as in the upstream fix: __on_port_opt = (?: port \d+)? and __suff = %(__on_port_opt)s(?: \[preauth\])?\s*. Add the administrator's own addresses to ignoreip.
Vendor advisories:
References
- https://github.com/fail2ban/fail2ban/commit/ddd879d22664904ace24e1255ac6571808c58187
- https://coredump.ws/repos/mail-hardening.git/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.