so, does pesto go bad? briefly, pesto does go bad, no matter how you store it. commercial pesto can stay fresh for up to 8 months after opening. homemade pesto, on the other hand, lasts for 3-4 months when freezed, but only 5-7 days when chilled in the fridge.