And i should mention, that food safety issue is more connected to toxins from fungi/bacteria, not the organisms themselves. They’ll die at 100 C, but some toxins might remain intact. And after cooking pasta your salty water contains not only salt, but starch (food).