According to all the lenders I deal with, you have to wait three years after the foreclosure. That said, if there are circumstances, and a lender has time, you can work through to have it waived. Get in touch with your banker to see if they can help you.
Hope this was helpful.
Coldwell Banker Vanguard