An infectious process that affects the brain and/or spinal cord. Representative examples include encephalitis, poliomyelitis, arachnoiditis, and meningitis. The disease is central nervous system infectious disorder (MONDO_0024619). Also known as: central nervous system infectious disease, infectious disease of central nervous system.