The teamviewer issue had nothing to do with teamviewer itself, it had to do with people reusing already compromised passwords for their remote control software, therefore allowing strangers access to their computer as the usernames and passwords have been hacked from another website.
This site lets you know if your credentials have been compromised.