Individuals who cut have an impulse-control disorder NOS, similar to skin picking. As discussed, impulse-control disorder and OCD are related to each other.
Often when individuals cut, they are attempting one of several things. Some people cut to create pain that will distract them from any other stressors that are going on in their life.
Others cut as a way to see that they are still alive, if they bleed, it means that there is something inside of them, even if they feel empty. Finally, some cut as a way to punish themselves for not being perfect, and the scars are a visual reminder of what they will do to themselves for not being perfect.
Individuals may have elaborate cutting rituals, but if cutting is the only ritual, the diagnosis would be impulse-control disorder NOS, and not OCD. However, if there were other ritualistic behaviors involved, then OCD could also be diagnosed.