If there was an extenuating circumstance, FHA will allow you to purchase a home two years out of foreclosure.
An extenuating circumstance is usually defined as the death of a primary wage earner or a major medical condition that impairs your ability to work.
Outside of the above situations, you'll need to wait three years minimum. If you're purchasing a home using conventional financing (Homepath included), you'll need to wait three years MINIMUM even with an extenuating circumstance, four years otherwise.
Private money/portfolio lending has it's own set of rules but generally these banking institutions will have similar guidelines but there's always a chance you can find a bank who's more aggressive, you'll just have to look long and hard for one.