p53 is a critical tumor suppressor, and the disruption of its normal function is often a prerequisite for the development or progression of tumors. Our previous works revealed that multiple members of Krüppel-associated box (KRAB) domain zinc-finger proteins (KZFPs) family regulate p53 transcriptional activity by interacting with it. But the tumor biology functions of these members have not been fully elucidated. Here, the pan-cancer analysis related to gastrointestinal cancers (GICs) revealed that ZNF8, a p53-interacting protein, is an unfavorable prognostic factor for patients with malignancies. ZNF8 interacts with p53 and further depresses its transcriptional activity in colon cancer cells. The knockdown of ZNF8 or the overexpression of ZNF8 inhibits or facilitates the in vitro colony formation, migration, invasion, and angiogenesis of p53+/+ colon cancer HCT116 cells, HepG2 cells and EC109 cells rather than p53−/− colon cancer HCT116 cells and p53-knockout HepG2 cells, respectively. Xenograft experiments conducted in vivo also showed that the knockdown of ZNF8 in p53+/+ but not in p53−/− HCT116 cells curbs the tumor growth and metastasis to lung, leading to an extended life span for tumor-bearing mice. Clinically, two independent immunohistochemistry cohorts of colon cancer and esophageal cancer also indicated that ZNF8 is higher expression in carcinoma tissues than adjacent tissues and this is associated with worse overall survival outcomes in patients without harboring p53 mutation. Together, our results provide insight into the p53-specific tumor oncogenic function of ZNF8. ZNF8 may prove to be a potential target for GICs treatment.