Yes, you will be responsible for it: liens travel with the property, not with the property owner, so whomever buys at the sheriff's sale has to deal with the lien. The foreclosure did not extinguish the lien; if enough money comes in at the sale to *fully* pay off the balance of the mortgage, any amounts over that should be applied to other liens, so it's possible that the lien will be paid off if enough is paid for the property--of course, if you are the buyer, it will be your money anyway--but if it is not paid off, it will remain.