This phase II trial studies how well cabozantinib-s-malate works in treating patients with ovarian, fallopian tube, or primary peritoneal cavity cancer that has come back or is growing, spreading, or getting worse. Cabozantinib-s-malate may stop the growth of tumor cells by blocking the growth of new blood vessels necessary for tumor growth and also by blocking some of the enzymes needed for cell growth.