3,894. Anointing Oneself With the Anointing Oil

Hilchos Klei HaMikdash 1:4

If a person intentionally makes anointing oil in the manner described in the preceding halacha, using the volumes described without increasing or decreasing the volumes of the ingredients, he is subject to the penalty of kareis (spiritual excision). If he made such an oil unwittingly, he must bring a sin offering as per Exodus 30:33: “One who mixes according to it (…shall be cut off from his people).” This is the case when one made it for anointing; if he made it to teach or to give to others, he is exempt from punishment (though doing so is still prohibited).

Hilchos Klei HaMikdash 1:5

A person who intentionally anoints himself with an olive-sized volume of anointing oil is subject to kareis; if he did so unwittingly, he must bring a sin offering. This is derived from the aforementioned verse, “and one who applies of it to an outsider* shall be cut off from his people.” One is only liable for anointing with the oil that was made by Moshe, as the verse says “of it.” This refers specifically to the oil regarding which Exodus 30:31 says, “This will be the holy anointing oil for Me.” Such anointing oil was never made except for that which was made by Moshe.

*I.e., a person other than those so designated, which would limit it to High Priests and kings.