We present the latest results of the CMS experiment in the field of flavor physics. The observation of a new beauty baryon in decays to Xi(b) and a prompt pion is discussed along with recent measurements Lambda_b baryon and quarkonium production cross sections. Finally, we describe the search for rare decays of charmed mesons to dimuons