Kenya has been grouped with World Cup-bound Cameroon, Namibia and Burundi in the qualifiers for the 2023 Afcon in Ivory Coast.
The draw was conducted on Tuesday evening in Johannesburg South Africa.
Kenya like Zimbabwe, however, is serving indefinite FIFA suspensions over government interference.
The two associations of FIFA have up to two weeks to the first matchdays of the qualifiers to get the suspensions lifted for them to participate.
The Harambee Stars last qualified for the Afcon in 2019 in Egypt. They missed the last edition in Cameroon this year.
On paper, apart from Cameroon, the Stars stand a chance against Namibia and Burundi and can qualify for the finals.
Winners and runners-up in each group except H qualify for 24-team finals in the Ivory Coast during June and July 2023
Ivory Coast automatically qualify from Group H as tournament hosts, along with the highest placed of the other three teams
Kenya and Zimbabwe are suspended by FIFA due to government interference in the running of the sport and they will be allowed to compete only if the bans are lifted by mid May
Nigeria, Sierra Leone, Guinea-Bissau, Sao Tome e Principe or Mauritius
Burkina Faso, Cape Verde, Togo, Eswatini
Cameroon, Kenya, Namibia, Burundi
Egypt, Guinea, Malawi, Ethiopia
Ghana, Madagascar, Angola, Central African Republic
Algeria, Uganda, Niger, Tanzania
Mali, Congo Brazzaville, Gambia, South Sudan
Ivory Coast (hosts), Zambia, Comoros, Lesotho
Democratic Republic of Congo, Gabon, Mauritania, Sudan
Tunisia, Equatorial Guinea, Libya, Botswana
Morocco, South Africa, Zimbabwe, Liberia
Senegal (holders), Benin, Mozambique, Rwanda