The 34-year-old was previously with the Staggies in 2015/16 and has also played for Aberdeen, Rangers and Bristol City.
Foster now returns to Dingwall to link up with Stuart Kettlewell and Steven Ferguson's side ahead of Saturday's match at Pittodrie.