The shared mechanisms between pediatric acute lymphoblastic leukaemia (ALL) and pediatric sepsis are currently unclear. This study was aimed to explore the shared key genes of pediatric ALL and pediatric sepsis. The datasets involved were downloaded from the Gene Expression Omnibus (GEO) database. Differentially expressed genes (DEGs) between disease and control samples in GSE13904 and GSE79533 were intersected. The least absolute shrinkage and selection operator (LASSO) and the boruta analyses were performed in GSE13904 and GSE79533 separately based on shared DEGs, and shared key genes were obtained by taking the intersection of sepsis-related key genes and ALL-related key genes. Three shared key genes (HCK, NOG, RNF125) were obtained, that have a good diagnostic value for both sepsis and ALL. The correlation between shared key genes and differentially expressed immune cells was higher in GSE13904 and conversely, the correlation of which was lower in GSE79533. Suggesting that the sharing key genes had a different impact on the immune environment in pediatric ALL and pediatric sepsis. We make the case that this study provides a new perspective to study the relationship between pediatric ALL and pediatric sepsis.