The blasts took place earlier on Wednesday in the town of Mahas in Somalia's central Hiraan region.
"Most of the dead are civilians. They are women and children," Hassan-Kafi Mohamed Ibrahim, deputy police commissioner of Hirshabelle State, told Reuters.
What do we know about the car bomb attacks?
State radio reported that the homes of a district commissioner and federal lawmaker were the targets.
Terror group Al-Shabab claimed responsibility for the attack and also claimed the number of dead was far higher than the number provided by authorities.