The declaration was issued by the leaders of the DRC, Rwanda, Burundi and Angola and former Kenyan President Uhuru Kenyatta after a summit in Luanda on Wednesday aimed at finding solutions to the east DRC crisis.
M23's military spokesperson was not immediately available for comment.
Eastern DRC is facing an insurgency by the M23, a Tutsi-led rebel group which the Congolese government claims is supported by neighboring Rwanda. Rwanda denies this, but the M23's resurgence this year has caused a major diplomatic crisis.
In addition to the ceasefire, the statement said the M23 must withdraw from its occupied territories or face intervention by regional forces.
"If M23 does not withdraw the East African Community (EAC) heads of states shall authorize use of force to compel the group to comply," it said.
More than 120 armed groups continue to operate across large swathes of eastern DRC despite billions of dollars spent on one of the United Nations' largest peacekeeping forces.
The seven countries of the EAC, which the DRC joined this year, agreed in April to set up a regional force to help fight the militias. Uganda will be the third country to deploy troops after Kenya and Burundi.
Rwandan President Paul Kagame and his Congolese counterpart Felix Tshisekedi also met in Luanda in July and agreed on an immediate cessation of hostilities and the withdrawal of M23 fighters from the DRC.
But the M23 did not respect that agreement, saying only it could sign a ceasefire with the government. Fighting has continued since, forcing thousands of people to flee their homes.
A group of U.N. experts said this year it had "solid evidence" that Rwandan troops were fighting alongside the M23 and providing it with weapons and support. Rwanda denied the claims.
The statement issued on Wednesday included an agreement to cease all politico-military support to the M23 and all other local and foreign armed groups in the region.