While I am not a canon lawyer, it appears that the Code of Canon Law states:
**Can. 1364 **
§1. Without prejudice to the prescript of ⇒ can. 194, §1, n. 2, an apostate from the faith, a heretic, or a schismatic incurs a latae sententiae excommunication; in addition, a cleric can be punished with the penalties mentioned in ⇒ can. 1336, §1, nn. 1, 2, and 3.
**Can. 1354 **
§1. In addition to the persons listed in ⇒ cann. 1355-1356, all who can dispense from a law which includes a penalty or who can exempt from a precept which threatens a penalty can also remit that penalty.
§2. Moreover, a law or precept which establishes a penalty can also give the power of remission to others.
§3. If the Apostolic See has reserved the remission of a penalty to itself or to others, the reservation must be interpreted strictly.
**Can. 1355 **
§1. Provided that the penalty has not been reserved to the Apostolic See, the following can remit an imposed or declared penalty established by law:
1/ the ordinary who initiated the trial to impose or declare a penalty or who personally or through another imposed or declared it by decree;
2/ the ordinary of the place where the offender is present, after the ordinary mentioned under n. 1 has been consulted unless this is impossible because of extraordinary circumstances.
§2. If the penalty has not been reserved to the Apostolic See, an ordinary can remit a latae sententiae penalty established by law but not yet declared for his subjects and those who are present in his territory or who committed the offense there; any bishop can also do this in the act of sacramental confession.