This post outline the common Pathfinder automatic issues, and one possible repair. Generally it's due to heat buildup and lack of maintenance (ATF fluid changes). Note they mention the Subaru as well.
http://npora.ipbhost.com//index.php?...tranny+failure