In this work, we consider a cubic integrable system under quadratic perturbations. We then study the limit cycles of the perturbed system by using Melnikov functions up to order three. We prove that the sharp upper bound of the number of limit cycles lies between six and seven. Also, we give an example that shows six limit cycles. (C) 2020 Elsevier Ltd. All rights reserved.