The team said Tuesday that Osgood underwent the operation in Philadelphia. The team says his recovery is expected to take six to eight weeks.
The 38-year-old missed all of November because of the injury.
Osgood has won three Stanley Cup titles with Detroit and has backed up Jimmy Howard for most of the last two seasons.
Last month, he became the 10th goalie to win 400 NHL games.