Is it illegal to abandon someone in the woods?

If it is done with criminal intent or amounts to criminal negligence, yes, most certainly.