Can you buy a foreclosed home with bad credit?

My credit isn't terrible but it's not perfect either. I found a foreclosed house for $5000 and I have the money to buy it with. Do you still have to have good credit to buy a foreclosed home even though you have the amount of the forecloser?
3 answers 3