Parsing log files not intended to be read by automation (eg. questionable or nonexistent escaping) to then take actions as root is with great remote injection vector is not a good idea.
Using fail2ban with SSH is very widely done and is thoroughly recommended. It increases security and is objectively a good idea.
They are schoolboy errors in a relatively trivial piece of software that very well demonstrate the fundamental security flaw in its design.
> is thoroughly recommended
Recommended by whom? The Internet, or prominent experts in the field?
I read through the CVEs and they're not 'schoolboy errors' at all - in fact, the first one doesn't even refer to fail2ban itself but to a program being called by fail2ban.
There's no fundamental security flaw in its design.
> Recommended by whom? The Internet, or prominent experts in the field?
It's recommended in several linux/unix books - physical books, written by experts - and in many blogs. So, both.
The knocker says "password123" and you say "Wrong, go away." But one second later they come back and knock and you have to get up and go to the door again. And again. And again.
The bad guys never get in because they only try stupid passwords, but the constant getting up and going to the door gets pretty tiresome.
So you get a dog, you put it outside your door and you train it to keep away for one minute any stranger who knocks but fails to get in.
Now you have a lot more peace because you're not getting out of your chair every second to ask the pass phrase from some rando.
Fail2ban is the dog.