A man who bragged about hacking into Miley Cyrus' e-mail account and distributing revealing pictures of her has been arrested on unrelated charges, according to court documents. Josh Holly, 21, was arrested Thursday in Nashville and charged with possession of unauthorized credit card account numbers after FBI agents reviewed evidence obtained when they searched his computer.

In an FBI affidavit filed with the U.S. District Court in Nashville, Agent Victor Rodriguez writes that Holly acknowledged hacking into Cyrus' MySpace account. Court documents also said he bragged online and to the media about obtaining photos of Cyrus from her Gmail account in late 2007 and posting them on a site frequented by hackers.

"Holly made numerous admissions during the interview," Rodriguez wrote in the affidavit dated January 2009. "He confirmed that he was the person who had obtained data from Miley Cyrus' MySpace account without authorization."