Kraft Foods on Tuesday said it would voluntarily recall about 242,000 cases of its Macaroni & Cheese Dinners because they could contain pieces of metal. More than 6.5 million boxes are included in the recall, the company told CNBC. (Tweet this)

The food producer said it has received eight consumer complaints about product, but no injuries have been reported.

"We deeply regret this situation and apologize to any consumers we have disappointed," the company said in a statement.

Kraft said the recall is limited to the 7.25-oz. size of the original flavor of boxed dinner with the "Best When Used By" dates of Sept. 18, 2015, through Oct. 11, 2015, with the code "C2" directly below the date on each individual box.

However, Kraft notes that some of the boxes were packed in multi-pack units that have a range of different code dates and manufacturing codes.