A CCJ typically remains on your credit file for six years from the date it was issued.
During this time, it can impact your credit score and affect your ability to obtain a mortgage.
However, as time passes and your financial situation improves, some lenders may be more willing to consider your application.