Priests who hear confessions are not allowed to tell anyone what they hear, no matter what. In case of mass penance, anyone who heard what the person told the priest also must not tell anyone what he or she had heard.