(CNN) Hundreds of Idaho inmates exploited a vulnerability in their personal tablets and gave themselves thousands of dollars in credits used to download music and games and use email, officials said Friday.

An investigation showed more than 360 inmates hacked into the JPay system to increase their account balances by nearly $225,000 in credits, according to Jeffrey Ray, a spokesman with the Idaho Department of Corrections.

JPay, a service provided by CenturyLink, allows inmates to download games and music to portable players, the statement said.

The investigation by the state's Department of Corrections, JPay and CenturyLink found inmates at five different Idaho correctional facilities had increased the credit on their accounts.

Fifty of the inmates gave themselves more than $1,000 worth of credits, the statement said. One inmate managed to get nearly $10,000 worth of credits, the highest amount.

Read More