Kibble bags are treated in order to prolong the food stored inside, and most dog food makers advise generally around 6 weeks before the food goes bad. If you do leave your kibble in an open bag, be sure to try and wrap the top, to limit the amount of air available to the inside of the dog food bag.