From what? Generally fail2ban only exposes unnecessary attack surface while providing zero benefit.
How does fail2ban expose attack surface?
It's code running on partially attacker-controlled inputs. It several times had vulnerabilities that allowed an attacker to trigger blocks for arbitrary IPs.
I remember there's a privEsc on old versions of fail2ban.