Giants second baseman Joe Panik underwent surgery Monday to repair a torn ligament in his left thumb. He is expected to miss six weeks.