Former Denver Broncos cornerback Perrish Cox has signed a two-year deal with the San Francisco 49ers, a source told ESPN's Josina Anderson.