If stored properly, an uncooked spaghetti squash can last up to 1 month. If it becomes soft to the touch, it is likely overripe and should be thrown away.