Man Charged in Jennifer Lawrence Nude Photo Hack Pleads Guilty

​But he may only spend 18 months in prison.

The crime happened in August 2014, but it was only Tuesday that Jennifer Lawrence, Ariana Grande, Kate Upton, and the other female celebrities who had hundreds of their nude photos leaked saw some justice.

According to Variety, Ryan Collins of Lancaster, Pennsylvania signed a plea deal with the U.S. Attorney's office in Los Angeles earlier this week. Collins, 36, gained illegal access to at least 50 iCloud accounts and 72 Gmail accounts by phishing, or sending fake emails that appeared to be from Apple or Google asking for usernames and passwords, NBC reports.

Advertisement - Continue Reading Below

Collins could face up to five years in prison, but because he cooperated with prosecutors, he may see a lighter sentence of only 18 months.

"It's so beyond me," Lawrence said of the theft in a Vanity Fair profile. "I just can't imagine being that detached from humanity. I can't imagine being that thoughtless and careless and so empty inside."

Follow Marie Claire on Instagram for the latest celeb news, pretty pics, funny stuff, and an insider POV.

Read Next: