It depends on how bad the credit is. You can buy a home using a VA loan even while in a chapter 13 bankruptcy! The VA loan does not have minimum credit score but almost all investors of VA home loans do. If your credit is below 530, you definitely need to fix your credit first. If you score is over 530, you may still qualify. You cant have any open collections and no late payments in the last 12 months though.