This phase II trial is studying how well VEGF Trap works in treating patients with recurrent malignant or anaplastic gliomas that did not respond to temozolomide. VEGF Trap may stop the growth of malignant or anaplastic gliomas by blocking blood flow to the tumor.