If the sauerkraut is very rotten or has mold, you can get food poisoning from it. Better not to consume food that seems suspicious to you.