Pasta water doesn't spoil, since it's made of just starch, water, and salt; however, this doesn't mean you can keep it in the fridge forever. You shouldn't save pasta water for longer than 2 to 3 days, since it can become a breeding ground for bacteria, so use your pasta water quickly for the best and most convenient results.