(CNN) Three men pleaded guilty Friday to criminal terrorism charges in connection with a foiled plot to attack an Islamic community in New York state.

Vincent Vetromile, 20, pleaded guilty to one count of attempted criminal possession of a weapon in the first degree as a crime of terrorism, according to Monroe County District Attorney spokeswoman Calli Marianetti.

Andrew Crysel, 19, and Brian Colaneri, 20, both pleaded guilty to one count of conspiracy in the second degree as a crime of terrorism. The three men will not face additional federal charges as a part of the plea deal, Marianetti told CNN.

Vetromile faces a prison sentence of at least seven years and Crysel and Colaneri face a prison sentence of four to 12 years, according to Marianetti. Sentencing for the three men is set for August 8.

CNN has reached out to their defense attorneys for comment but have not heard back.

Read More