What is this?

Savannah

So yesterday I started spotting in the middle of my cycle which never happens and I have slight cramps but they are making my stomach hurt? The spotting was brown from the start and it is just hardly enough to get on a pantyliner....what could this be?