A:
It is permissible for
a slave or illegitimate child to lead people in Salah if they are qualified for it in terms of the conditions of Imamate (leading people in prayer) because of the general meaning of the saying of the Prophet (peace be upon him),
The one who has memorized the most Qur'an should lead people in Salah.
We do not know of any proof to prevent this.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.