If your sauerkraut smells foul or has mold growing on it, it has gone bad and should be discarded.