§ 1. One who throws away the consecrated species or, for a sacrilegious purpose, takes them away or keeps them, incurs a latae sententiae excommunication reserved to the Apostolic See; a cleric, moreover, may be punished with some other penalty, not excluding dismissal from the clerical state. § 2. A person guilty of consecrating for a sacrilegious purpose one element only or both elements within the Eucharistic celebration or outside it is to be punished according to the gravity of the offence, not excluding by dismissal from the clerical state.
Source: Code of Canon Law (Vatican.va)