That could always be an issue. Though I try to make sure I have the minimum number of ports, and services running. But there is a possibility that something I have is exploitable still.
Make sure to keep the amount of selfhosted services to a minimum and as simple as possible to use and maintain.
The simpler and smaller the surface of attack is, the better.