Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| fail2ban | fail2ban | 0.10.5 – ≤ 1.1.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | fail2ban | No fix yet | — |
| Debian 13 | fail2ban | No fix yet | — |
| Debian 12 | fail2ban | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | fail2ban | No fix yet | — |
| Ubuntu 26.04 LTS | fail2ban | No fix yet | — |
| Ubuntu 24.04 LTS | fail2ban | No fix yet | — |
| Ubuntu 22.04 LTS | fail2ban | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | fail2ban | No fix yet | — |
| Ubuntu Pro 18.04 LTS | fail2ban | No fix yet | — |
| Ubuntu Pro 16.04 LTS | fail2ban | No fix yet | — |
| Ubuntu Pro 14.04 LTS | fail2ban | No fix yet | — |