Wordpress. All bets for security are off
Of course if you start running servers on you Pi that are open to the internet then security becomes a whole bigger issue than just surfing the web from a Pi.
I was kind of joking about Wordpress but it's a good example. Plenty of Wordpress sites have been hacked into because they have not kept up to date with the latest exploits and updated their software or configurations accordingly.
But now we are talking how to secure servers/services which is a whole other topic than the security of the Pi/Raspbian itself.
Memory in C++ is a leaky abstraction .