CVEfocus › CVE database › CVE-2026-109786

CVE-2026-109786

CVSS 5.3 MediumEPSS 0.5% (higher than 38% of CVEs)Published 2026-10-13Updated 2026-10-15Assigner: mitre

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.

CWE-117

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

8Fix pending
3Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10fail2banFix pendingUBUNTU-CVE-2026-109786
Ubuntu 26.04fail2banUnder investigationUBUNTU-CVE-2026-109786
Ubuntu 24.04fail2banUnder investigationUBUNTU-CVE-2026-109786
Ubuntu 22.04fail2banUnder investigationUBUNTU-CVE-2026-109786
Ubuntu 20.04fail2banFix pendingUBUNTU-CVE-2026-109786
Ubuntu 18.04fail2banFix pendingUBUNTU-CVE-2026-109786
Ubuntu 16.04fail2banFix pendingUBUNTU-CVE-2026-109786
Ubuntu 14.04fail2banFix pendingUBUNTU-CVE-2026-109786
Debian 14fail2banFix pendingDEBIAN-CVE-2026-109786
Debian 13fail2banFix pendingDEBIAN-CVE-2026-109786
Debian 12fail2banFix pendingDEBIAN-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.

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

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.