A widespread hack of celebrity nude photos shows the need for increased cybersecurity, CNBC's Jim Cramer said Tuesday.

Nude images of actress Jennifer Lawrence and model Kate Upton have surfaced online, part of a reported mass hacking of celebrities' Apple iCloud accounts, according to NBC News.