There is not a singular criterion that you must have a specific credit score to buy a house through a home loan. Every bank considers credit score of 750 and above as a good one and it is bonus if you have a long credit history with clean repayment track record.
As home loan is a secured loan, lenders give out loans to individuals even with a poor credit score at high interest rate provided you fulfil other eligibility criteria prescribed by the lender.