This study unveils the crucial contribution of Casp11 and GSDMD to cognitive impairments and spatial memory loss in a murine sepsis model. This evidence concerns the gene GSDMD and Cognitive impairment.