Sayyiduna Jabir (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "Any slave who marries without the permission of his master or his family is an adulterer."
Brief Explanation
(Commentary on Hadith 2269)
That is, her marriage is not valid; this is the position of the noble Companions (radi Allahu anhum), Imam Ahmad and Imam Ishaq (rahimahumallah), and others.